Changeset 25d7641 in sasview for calculatorview


Ignore:
Timestamp:
Jun 23, 2011 1:11:32 PM (14 years ago)
Author:
Jae Cho <jhjcho@…>
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, release_4.0.1, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
Children:
011b710
Parents:
f726a63
Message:

fixes plot on res cal

File:
1 edited

Legend:

Unmodified
Added
Removed
  • calculatorview/perspectives/calculator/resolution_calculator_panel.py

    rf726a63 r25d7641  
    3535    PANEL_HEIGHT = 653 
    3636    FONT_VARIANT = 0 
     37    IS_WIN = True 
    3738else: 
    38     PANEL_WIDTH = 560 
    39     PANEL_HEIGHT = 692 
     39    PANEL_WIDTH = 540 
     40    PANEL_HEIGHT = 672 
    4041    FONT_VARIANT = 1 
     42    IS_WIN = False 
    4143 
    4244_SOURCE_MASS = {'Alpha':6.64465620E-24, 
     
    560562        # Compute before adding the canvas to the sizer 
    561563        self.on_compute() 
    562  
     564         
    563565        # Fill up the sizer 
     566        if IS_WIN: 
     567            gap = 27 
     568        else: 
     569            gap = 15 
    564570        self.vertical_r_sizer.Add(self.canvas, 0,  
    565571                                       wx.ALL|wx.EXPAND, 2)  
    566         self.vertical_r_spacer.Add((0, 24))  
     572        self.vertical_r_spacer.Add((0, gap))  
    567573        self.vertical_r_spacer.Add(self.vertical_r_sizer, 0,  
    568574                                       wx.ALL|wx.EXPAND, 2) 
    569         self.vertical_r_spacer.Add((0, 30))  
     575        self.vertical_r_spacer.Add((0, gap))  
    570576        self.vertical_r_spacer.Add(wx.StaticLine(self), 0,  
    571577                                       wx.ALL|wx.EXPAND, 2) 
Note: See TracChangeset for help on using the changeset viewer.