Defer splitter calculation until next event
Windows doesn't have valid sizes in the size event Fixes https://gitlab.com/kicad/code/kicad/-/issues/13019
This commit is contained in:
parent
c326c57e05
commit
74fa88c0f6
|
@ -89,7 +89,10 @@ PROPERTIES_PANEL::PROPERTIES_PANEL( wxWindow* aParent, EDA_BASE_FRAME* aFrame )
|
|||
Bind( wxEVT_SIZE,
|
||||
[&]( wxSizeEvent& aEvent )
|
||||
{
|
||||
RecalculateSplitterPos();
|
||||
CallAfter( [&]()
|
||||
{
|
||||
RecalculateSplitterPos();
|
||||
} );
|
||||
aEvent.Skip();
|
||||
} );
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue