Fix repositioning editors for horizontally scrolled grid

Closes #18313.
This commit is contained in:
Artur Wieczorek
2018-12-28 09:18:06 +01:00
parent 9b7c281e6b
commit 95461c566d
4 changed files with 70 additions and 10 deletions

View File

@@ -1687,10 +1687,10 @@ protected:
// Which column's editor is selected (usually 1)?
unsigned int m_selColumn;
#if WXWIN_COMPATIBILITY_3_0
// x relative to splitter (needed for resize).
int m_ctrlXAdjust;
#endif // WXWIN_COMPATIBILITY_3_0
// lines between cells
wxColour m_colLine;
// property labels and values are written in this colour
@@ -1803,7 +1803,11 @@ protected:
wxRect GetEditorWidgetRect( wxPGProperty* p, int column ) const;
#if WXWIN_COMPATIBILITY_3_0
wxDEPRECATED_MSG("Don't use this function. It works only if horizontal scrolling is not active")
void CorrectEditorWidgetSizeX();
#endif // WXWIN_COMPATIBILITY_3_0
void CorrectEditorWidgetSizeX(int xPosChange, int widthChange);
// Called in RecalculateVirtualSize() to reposition control
// on virtual height changes.