mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2026-01-06 20:10:08 +01:00
Trim Whitespace lib directory
This commit is contained in:
@@ -38,7 +38,7 @@ def AdjustRectToScreen(rect, adjust=(0,0)):
|
||||
|
||||
:rtype: `rect`
|
||||
"""
|
||||
|
||||
|
||||
assert isinstance(rect, wx.Rect)
|
||||
if -1 in rect.Get():
|
||||
# bail out if there are any -1's in the dimensions
|
||||
@@ -74,7 +74,7 @@ def AdjustRectToScreen(rect, adjust=(0,0)):
|
||||
if rect.top < ca.top:
|
||||
rect.height -= (ca.top - rect.top)
|
||||
rect.top = ca.top
|
||||
|
||||
|
||||
# make final adjustments if needed
|
||||
adjust = wx.Size(*adjust)
|
||||
if rect.width > (ca.width - adjust.width):
|
||||
|
||||
Reference in New Issue
Block a user