mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2026-01-05 03:20:08 +01:00
@@ -1794,8 +1794,6 @@ class AuiTabContainer(object):
|
||||
offset += self._art.GetIndentSize()
|
||||
|
||||
rect = wx.Rect(*self._rect)
|
||||
rect.y = 0
|
||||
rect.height = self._rect.height
|
||||
|
||||
# See if the given page is visible at the given tab offset (effectively scroll position)
|
||||
for i in range(tabOffset, page_count):
|
||||
@@ -1807,7 +1805,6 @@ class AuiTabContainer(object):
|
||||
|
||||
tab_button = self._tab_close_buttons[i]
|
||||
|
||||
rect.x = offset
|
||||
rect.width = self._rect.width - right_buttons_width - offset - 2
|
||||
|
||||
if rect.width <= 0:
|
||||
|
||||
@@ -741,9 +741,7 @@ class AuiDefaultDockArt(object):
|
||||
rect.x = rect.x + (rect.width//2) - (bmp.GetWidth()//2)
|
||||
rect.width = old_x + rect.width - rect.x - 1
|
||||
else:
|
||||
old_y = rect.y
|
||||
rect.y = rect.y + (rect.height//2) - (bmp.GetHeight()//2)
|
||||
rect.height = old_y + rect.height - rect.y - 1
|
||||
|
||||
if button_state == AUI_BUTTON_STATE_PRESSED:
|
||||
rect.x += 1
|
||||
|
||||
@@ -5603,16 +5603,13 @@ class AuiManager(wx.EvtHandler):
|
||||
if action_pane == -1:
|
||||
return positions, sizes
|
||||
|
||||
offset = 0
|
||||
for pane_i in range(action_pane-1, -1, -1):
|
||||
amount = positions[pane_i+1] - (positions[pane_i] + sizes[pane_i])
|
||||
if amount >= 0:
|
||||
offset += amount
|
||||
pass
|
||||
else:
|
||||
positions[pane_i] -= -amount
|
||||
|
||||
offset += sizes[pane_i]
|
||||
|
||||
# if the dock mode is fixed, make sure none of the panes
|
||||
# overlap we will bump panes that overlap
|
||||
offset = 0
|
||||
|
||||
Reference in New Issue
Block a user