Skip to content

Commit

Permalink
Merge pull request #69 from benfitzpatrick/fix-switch-graph-view-dev
Browse files Browse the repository at this point in the history
Fix null graph view disappearing act
  • Loading branch information
hjoliver committed Jun 23, 2012
2 parents 1c4a338 + 74395a9 commit fc4eef0
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions lib/cylc/gui/SuiteControl.py
Original file line number Diff line number Diff line change
Expand Up @@ -273,8 +273,8 @@ def change_view_layout( self, horizontal=False ):
else:
new_pane = gtk.VPaned()
extent = top_parent.get_allocation().height
new_pane.pack1( self.view_containers[0] )
new_pane.pack2( self.view_containers[1] )
new_pane.pack1( self.view_containers[0], resize=True, shrink=True )
new_pane.pack2( self.view_containers[1], resize=True, shrink=True )
new_pane.set_position( extent / 2 )
top_parent.pack_start( new_pane, expand=True, fill=True )
self.window.show_all()
Expand Down Expand Up @@ -419,8 +419,11 @@ def create_view( self, viewname=None, view_num=0, pane_position=-1 ):
if pane_position == -1:
pane_position = extent / 2
pane.set_position( pane_position )
zero_parent.pack_start(pane, expand=True, fill=True)
container.pack_start( view.get_control_widgets(),
zero_parent.pack_start(pane, expand=True, fill=True)
view_widgets = view.get_control_widgets()
if view_widgets.size_request() == (0, 0):
view_widgets.set_size_request(1, 1)
container.pack_start( view_widgets,
expand=True, fill=True )
# Handle menu
for view_menuitems in self.current_view_menuitems:
Expand Down

0 comments on commit fc4eef0

Please sign in to comment.