Update AUI pane resizable status even when it is floating.
Making a pane (e.g. a toolbar) [not] resizable didn't have any effect when it was floating, fix this by explicitly updating its style to match the internal state. Closes #10638. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63948 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
6578236183
commit
71d77ea604
@ -2538,6 +2538,14 @@ void wxAuiManager::Update()
|
||||
*/
|
||||
}
|
||||
|
||||
// update whether the pane is resizable or not
|
||||
long style = p.frame->GetWindowStyleFlag();
|
||||
if (p.IsFixed())
|
||||
style &= ~wxRESIZE_BORDER;
|
||||
else
|
||||
style |= wxRESIZE_BORDER;
|
||||
p.frame->SetWindowStyleFlag(style);
|
||||
|
||||
if (p.frame->IsShown() != p.IsShown())
|
||||
p.frame->Show(p.IsShown());
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user