Skip to content

Commit 3302982

Browse files
committed
Limit fields grid max height
GTK seems to have a bug with grid height overriding sizer layout Fixes #382
1 parent 275361c commit 3302982

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

InteractiveHtmlBom/dialog/dialog_base.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -446,6 +446,8 @@ def __init__( self, parent, id = wx.ID_ANY, pos = wx.DefaultPosition, size = wx.
446446

447447
# Cell Defaults
448448
self.fieldsGrid.SetDefaultCellAlignment( wx.ALIGN_CENTER, wx.ALIGN_TOP )
449+
self.fieldsGrid.SetMaxSize( wx.Size( -1,200 ) )
450+
449451
bSizer4.Add( self.fieldsGrid, 1, wx.ALL|wx.EXPAND, 5 )
450452

451453
bSizer5 = wx.BoxSizer( wx.VERTICAL )
@@ -572,3 +574,5 @@ def OnNetlistFileChanged( self, event ):
572574

573575
def OnBoardVariantFieldChange( self, event ):
574576
event.Skip()
577+
578+

settings_dialog.fbp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3031,7 +3031,7 @@
30313031
<property name="margin_width">0</property>
30323032
<property name="max_size"></property>
30333033
<property name="maximize_button">0</property>
3034-
<property name="maximum_size"></property>
3034+
<property name="maximum_size">-1,200</property>
30353035
<property name="min_size"></property>
30363036
<property name="minimize_button">0</property>
30373037
<property name="minimum_size"></property>

0 commit comments

Comments
 (0)