Skip to content

Commit f611e73

Browse files
authored
Merge pull request #7 from sparkfun/release_candidate
v1.1.2 - allow window to be resized
2 parents 60e7253 + af105f2 commit f611e73

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

SparkFunKiCadPanelizer/dialog/dialog.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ def __init__(self, parent, config, layertable, ordering, panelizer, func):
5252

5353
self.panel = DialogPanel(self, config, layertable, ordering, panelizer, func)
5454

55-
best_size = self.BestSize
55+
best_size = self.panel.BestSize
5656
# hack for some gtk themes that incorrectly calculate best size
5757
best_size.IncBy(dx=0, dy=30)
5858
self.SetClientSize(best_size)

SparkFunKiCadPanelizer/dialog/dialog_text_base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
class DialogPanelBase ( DialogShim ):
2323

2424
def __init__( self, parent ):
25-
DialogShim.__init__ ( self, parent, id = wx.ID_ANY, title = _(u"SparkFun KiCad Panelizer"), pos = wx.DefaultPosition, size = wx.Size( -1,-1 ), style = wx.DEFAULT_DIALOG_STYLE|wx.STAY_ON_TOP|wx.BORDER_DEFAULT )
25+
DialogShim.__init__ ( self, parent, id = wx.ID_ANY, title = _(u"SparkFun KiCad Panelizer"), pos = wx.DefaultPosition, size = wx.Size( -1,-1 ), style = wx.DEFAULT_DIALOG_STYLE|wx.RESIZE_BORDER|wx.STAY_ON_TOP|wx.BORDER_DEFAULT )
2626

2727
self.SetSizeHints( wx.Size( -1,-1 ), wx.DefaultSize )
2828

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "1.1.1"
1+
__version__ = "1.1.2"

text_dialog.fbp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
<property name="name">DialogPanelBase</property>
4949
<property name="pos"></property>
5050
<property name="size">-1,-1</property>
51-
<property name="style">wxDEFAULT_DIALOG_STYLE|wxSTAY_ON_TOP</property>
51+
<property name="style">wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER|wxSTAY_ON_TOP</property>
5252
<property name="subclass">DialogShim; .compat; forward_declare</property>
5353
<property name="title">SparkFun KiCad Panelizer</property>
5454
<property name="tooltip"></property>

0 commit comments

Comments
 (0)