Ignore:
Timestamp:
Jul 19, 2016 8:40:03 AM (8 years ago)
Author:
lewis
Branches:
master, ESS_GUI, ESS_GUI_Docs, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_iss879, ESS_GUI_iss959, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc, costrafo411, magnetic_scatt, release-4.1.1, release-4.1.2, release-4.2.2, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
Children:
55bc56bc
Parents:
4b862c4
Message:

Fix scroll bars not appearing when metadata section expanded

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/sas/sasgui/perspectives/file_converter/converter_panel.py

    r4b862c4 ra027549  
    186186        sample_frame.Show(True) 
    187187 
     188    def on_collapsible_pane(self, event): 
     189        self.Freeze() 
     190        self.SetupScrolling() 
     191        self.parent.Layout() 
     192        self.Thaw() 
     193 
    188194    def datatype_changed(self, event): 
    189195        event.Skip() 
     
    278284        metadata_pane = metadata_section.GetPane() 
    279285        metadata_grid = wx.GridBagSizer(5, 5) 
     286 
     287        metadata_section.Bind(wx.EVT_COLLAPSIBLEPANE_CHANGED, 
     288            self.on_collapsible_pane) 
    280289 
    281290        y = 0 
     
    318327 
    319328    def __init__(self, parent=None, title='File Converter', base=None, 
    320         manager=None, size=(PANEL_SIZE * 1.05, PANEL_SIZE / 1.55), 
     329        manager=None, size=(PANEL_SIZE * 1.05, PANEL_SIZE / 1.25), 
    321330        *args, **kwargs): 
    322331        kwargs['title'] = title 
Note: See TracChangeset for help on using the changeset viewer.