Skip to content

Commit

Permalink
wxGUI/gmodeler: fix conflicting flags in 'Create relation' dialog (#3865
Browse files Browse the repository at this point in the history
)

* wxGUI/gmodeler: fix conflicting flags in 'Create relation' dialog
* meanwhile, fix the button size to see them in the default pop-up
* fix #3862
  • Loading branch information
pesekon2 committed Jun 19, 2024
1 parent afd7610 commit 7673b80
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions gui/wxpython/gmodeler/dialogs.py
Original file line number Diff line number Diff line change
Expand Up @@ -412,12 +412,10 @@ def _layout(self):
flag=wx.EXPAND | wx.LEFT | wx.RIGHT | wx.BOTTOM,
border=5,
)
mainSizer.Add(
btnSizer, proportion=0, flag=wx.EXPAND | wx.ALL | wx.ALIGN_CENTER, border=5
)
mainSizer.Add(btnSizer, proportion=0, flag=wx.EXPAND | wx.ALL, border=5)

self.panel.SetSizer(mainSizer)
mainSizer.Fit(self.panel)
mainSizer.Fit(self)

self.Layout()
self.SetSize(self.GetBestSize())
Expand Down

0 comments on commit 7673b80

Please sign in to comment.