Skip to content

Commit

Permalink
Limit fields grid max height
Browse files Browse the repository at this point in the history
GTK seems to have a bug with grid height overriding sizer layout

Fixes #382
  • Loading branch information
qu1ck committed May 1, 2023
1 parent 275361c commit 3302982
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions InteractiveHtmlBom/dialog/dialog_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -446,6 +446,8 @@ def __init__( self, parent, id = wx.ID_ANY, pos = wx.DefaultPosition, size = wx.

# Cell Defaults
self.fieldsGrid.SetDefaultCellAlignment( wx.ALIGN_CENTER, wx.ALIGN_TOP )
self.fieldsGrid.SetMaxSize( wx.Size( -1,200 ) )

bSizer4.Add( self.fieldsGrid, 1, wx.ALL|wx.EXPAND, 5 )

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

def OnBoardVariantFieldChange( self, event ):
event.Skip()


2 changes: 1 addition & 1 deletion settings_dialog.fbp
Original file line number Diff line number Diff line change
Expand Up @@ -3031,7 +3031,7 @@
<property name="margin_width">0</property>
<property name="max_size"></property>
<property name="maximize_button">0</property>
<property name="maximum_size"></property>
<property name="maximum_size">-1,200</property>
<property name="min_size"></property>
<property name="minimize_button">0</property>
<property name="minimum_size"></property>
Expand Down

0 comments on commit 3302982

Please sign in to comment.