Skip to content

Commit

Permalink
Merge pull request #156 from SasView/ticket-1069
Browse files Browse the repository at this point in the history
Ticket 1069: Fix for orphaned error boxes

Fixes #1069
  • Loading branch information
butlerpd authored Jun 26, 2018
2 parents 316b9c1 + dabcaf7 commit 9e96dbd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
1 change: 1 addition & 0 deletions src/sas/sasgui/perspectives/fitting/basepage.py
Original file line number Diff line number Diff line change
Expand Up @@ -2551,6 +2551,7 @@ def _on_disp_func(self, event=None):
self._update_paramv_on_fit()
# draw
self._draw_model()
self.Layout()
self.Refresh()
except Exception:
logger.error(traceback.format_exc())
Expand Down
10 changes: 5 additions & 5 deletions src/sas/sasgui/perspectives/fitting/fitpage.py
Original file line number Diff line number Diff line change
Expand Up @@ -705,9 +705,8 @@ def _set_sizer_dispersion(self):
text2.Hide()

ix = 3
ctl2 = wx.TextCtrl(self, wx.ID_ANY,
size=(_BOX_WIDTH / 1.3, 20),
style=0)
ctl2 = BGTextCtrl(self, wx.ID_ANY,
size=(_BOX_WIDTH / 1.3, 20))

self.sizer4_4.Add(ctl2, (iy, ix), (1, 1),
wx.EXPAND | wx.ADJUST_MINSIZE, 0)
Expand Down Expand Up @@ -1997,6 +1996,7 @@ def set_data(self, data):

self.on_smear_helper()
self.on_set_focus(None)
self.Layout()
self.Refresh()
# update model plot with new data information
if flag:
Expand Down Expand Up @@ -2891,8 +2891,8 @@ def custom_compare(a, b):
if not self.is_mac:
text2.Hide()
ix += 1
ctl2 = wx.TextCtrl(self, wx.ID_ANY,
size=(_BOX_WIDTH / 1.2, 20), style=0)
ctl2 = BGTextCtrl(self, wx.ID_ANY,
size=(_BOX_WIDTH / 1.2, 20))
sizer.Add(ctl2, (iy, ix), (1, 1),
wx.EXPAND | wx.ADJUST_MINSIZE, 0)
if not self.is_mac:
Expand Down

0 comments on commit 9e96dbd

Please sign in to comment.