- Timestamp:
- Apr 21, 2009 10:21:03 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gui/scripts/molvisviewer.tcl
r1406 r1416 28 28 } 29 29 30 set debug 030 set debug 1 31 31 proc debug { args } { 32 32 global debug … … 263 263 _BuildViewTab 264 264 265 # HACK ALERT. Initially force a requested width of the sidebar. The 266 # problem is that the requested size of the 3dview isn't set until an 267 # image is retrieved from the server. But we determine the size of the 268 # image from the size of the 3dview. 269 set w [expr [winfo reqwidth $itk_component(hull)] - 80] 265 # HACK ALERT. Initially force a requested width of the 3dview label. 266 267 # It's a chicken-and-the-egg problem. The size of the 3dview label is set 268 # from the size of the image retrieved from the server. But the size of 269 # the image is specified by the viewport which is the size of the label. 270 # The fly-in-the-ointment is that it takes a non-trival amount of time to 271 # get the first image back from the server. In the meantime the idletasks 272 # have already kicked in. We end up with a 1x1 viewport and image. 273 274 # So the idea is to set a ridiculously big requested width to the label 275 # (that's why we're using the blt::table to manage the geometry). It has 276 # to be big, because we don't know how big the user may want to stretch 277 # the window. This at least forces the sidebarframe give the 3dview the 278 # maximum size available, which is perfect an initially closed sidebar. 279 270 280 blt::table $itk_component(plotarea) \ 271 0,0 $itk_component(3dview) -fill both -reqwidth $w 272 281 0,0 $itk_component(3dview) -fill both -reqwidth 10000 273 282 # 274 283 # RENDERING AREA
Note: See TracChangeset
for help on using the changeset viewer.