mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2026-01-07 20:40:11 +01:00
Merge pull request #859 from tianzhuqiao/agw_aui_4.0.x
Detach wxControl in AuiToolbar from current sizer before attach to a …
This commit is contained in:
@@ -101,6 +101,8 @@ Changes in this release include the following:
|
||||
|
||||
|
||||
|
||||
* Detach wxControl in AuiToolbar from current sizer before attach to a new one.
|
||||
(#843)
|
||||
|
||||
4.0.1 "Lemonade"
|
||||
----------------
|
||||
|
||||
@@ -3072,6 +3072,9 @@ class AuiToolBar(wx.Control):
|
||||
sizer_item = sizer.Add((item.spacer_pixels, 1))
|
||||
|
||||
elif kind == ITEM_CONTROL:
|
||||
if item.window and item.window.GetContainingSizer():
|
||||
# Make sure that there is only one sizer to this control
|
||||
item.window.GetContainingSizer().Detach(item.window);
|
||||
|
||||
vert_sizer = wx.BoxSizer(wx.VERTICAL)
|
||||
vert_sizer.AddStretchSpacer(1)
|
||||
|
||||
Reference in New Issue
Block a user