Changeset 8a51dea0 in sasview for src


Ignore:
Timestamp:
Jun 18, 2018 2:43:00 PM (6 years ago)
Author:
krzywon
Branches:
master, magnetic_scatt, release-4.2.2, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, unittest-saveload
Children:
dabcaf7
Parents:
316b9c1
Message:

Run Layout on the fitpage during data and dispersity changes to fix orphan error box issue. Also make error text uneditable. refs #1069

Location:
src/sas/sasgui/perspectives/fitting
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • src/sas/sasgui/perspectives/fitting/basepage.py

    rc192960 r8a51dea0  
    25522552            # draw 
    25532553            self._draw_model() 
     2554            self.Layout() 
    25542555            self.Refresh() 
    25552556        except Exception: 
  • src/sas/sasgui/perspectives/fitting/fitpage.py

    ra7c6f38 r8a51dea0  
    708708                        ctl2 = wx.TextCtrl(self, wx.ID_ANY, 
    709709                                           size=(_BOX_WIDTH / 1.3, 20), 
    710                                            style=0) 
     710                                           style=wx.TE_READONLY) 
    711711 
    712712                        self.sizer4_4.Add(ctl2, (iy, ix), (1, 1), 
     
    19981998        self.on_smear_helper() 
    19991999        self.on_set_focus(None) 
     2000        self.Layout() 
    20002001        self.Refresh() 
    20012002        # update model plot with new data information 
     
    28932894                    ix += 1 
    28942895                    ctl2 = wx.TextCtrl(self, wx.ID_ANY, 
    2895                                        size=(_BOX_WIDTH / 1.2, 20), style=0) 
     2896                                       size=(_BOX_WIDTH / 1.2, 20), 
     2897                                       style=wx.TE_READONLY) 
    28962898                    sizer.Add(ctl2, (iy, ix), (1, 1), 
    28972899                              wx.EXPAND | wx.ADJUST_MINSIZE, 0) 
Note: See TracChangeset for help on using the changeset viewer.