Hide editor button while column splitter is being dragged

Main editor and its button (secondary editor) should be both hidden while dragging the splitter because it's misleading when one part of the property editor disappears and another part remains visible.
This commit is contained in:
Artur Wieczorek
2018-12-26 11:03:39 +01:00
parent 5366a1dfbb
commit 5c0acce694

View File

@@ -4910,11 +4910,10 @@ bool wxPropertyGrid::HandleMouseClick( int x, unsigned int y, wxMouseEvent &even
m_draggedSplitter = splitterHit;
m_dragOffset = splitterHitOffset;
#if wxPG_REFRESH_CONTROLS
// Fixes button disappearance bug
if ( m_wndEditor2 )
m_wndEditor2->Show ( false );
#endif
{
m_wndEditor2->Hide();
}
m_startingSplitterX = x - splitterHitOffset;
}
@@ -5273,11 +5272,10 @@ bool wxPropertyGrid::HandleMouseUp( int x, unsigned int WXUNUSED(y),
m_wndEditor->Show ( true );
}
#if wxPG_REFRESH_CONTROLS
// Fixes button disappearance bug
if ( m_wndEditor2 )
m_wndEditor2->Show ( true );
#endif
{
m_wndEditor2->Show(true);
}
// This clears the focus.
m_editorFocused = false;