Skip to content

Commit 54a5fc2

Browse files
committed
Auto size the dialog window
1 parent b0b80cf commit 54a5fc2

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

NVDA-addon/addon/globalPlugins/MathCAT/MathCATgui.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
class MathCATPreferencesDialog ( wx.Dialog ):
2121

2222
def __init__( self, parent ):
23-
wx.Dialog.__init__ ( self, parent, id = wx.ID_ANY, title = _(u"MathCAT Preferences"), pos = wx.DefaultPosition, size = wx.Size( 636,389 ), style = wx.DEFAULT_DIALOG_STYLE )
23+
wx.Dialog.__init__ ( self, parent, id = wx.ID_ANY, title = _(u"MathCAT Preferences"), pos = wx.DefaultPosition, size = wx.Size( -1,-1 ), style = wx.DEFAULT_DIALOG_STYLE )
2424

2525
self.SetSizeHints( wx.DefaultSize, wx.DefaultSize )
2626

@@ -311,6 +311,7 @@ def __init__( self, parent ):
311311

312312
self.SetSizer( gbSizer1 )
313313
self.Layout()
314+
gbSizer1.Fit( self )
314315

315316
self.Centre( wx.BOTH )
316317

wxFormBuilder/MathCATgui.fbp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
<property name="minimum_size"></property>
4848
<property name="name">MathCATPreferencesDialog</property>
4949
<property name="pos"></property>
50-
<property name="size">636,389</property>
50+
<property name="size">-1,-1</property>
5151
<property name="style">wxDEFAULT_DIALOG_STYLE</property>
5252
<property name="subclass">; ; forward_declare</property>
5353
<property name="title">MathCAT Preferences</property>

0 commit comments

Comments
 (0)