Fix repositioning editors for horizontally scrolled grid
New method of calculating of the new position/size of the editor (introduced in 95461c566d
) doesn't work well in all cases so we have to go back to the (modified) old method. To get the correct position of the editor cell from the absolute position of the splitter 0 we have to shift it by the origin of the scrolled view area.
See #18313.
This commit is contained in:
@@ -1687,10 +1687,8 @@ 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,11 +1801,7 @@ 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.
|
||||
|
Reference in New Issue
Block a user