mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2026-01-05 03:20:08 +01:00
Do not specify invalid alignment in BoxSizer flags
Specyfing a horizontal alignment in a wxHORIZONTAL layed out BoxSizer is pointless, and doing so throws an exception: wx._core.wxAssertionError: C++ assertion "!(flags & wxALIGN_RIGHT)" failed at ./src/common/sizer.cpp(2133) in DoInsert(): Horizontal alignment flags are ignored in horizontal sizers
This commit is contained in:
@@ -56,7 +56,7 @@ class sizer_Tests(wtc.WidgetTestCase):
|
||||
def test_sizerFlags(self):
|
||||
bs = wx.BoxSizer()
|
||||
bs.Add(wx.Panel(self.frame),
|
||||
wx.SizerFlags(2).Border(wx.ALL, 5).Align(wx.ALIGN_RIGHT))
|
||||
wx.SizerFlags(2).Border(wx.ALL, 5).Align(wx.ALIGN_TOP))
|
||||
|
||||
def test_sizerAddMany(self):
|
||||
bs = wx.BoxSizer()
|
||||
|
||||
Reference in New Issue
Block a user