Ignore:
Timestamp:
Feb 8, 2006, 5:18:56 PM (18 years ago)
Author:
mmc
Message:
  • Fixed the license terms to comply with the official open source license from Purdue's OTC office.
  • Fixed the scroller to handle scrollbars properly. They weren't always popping up when needed. Sometimes you had to scroll a little first. Better now.
  • Fixed the DeviceEditor? to pack its internal widgets better, so images within a DeviceViewer1D structure can change size and will show up properly.
  • Fixed the analyzer to take down the progress bar properly when there's an error during execution.
  • Fixed the Rappture::exec command to initialize execctl properly, in case there's an error during execution.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gui/scripts/scroller.tcl

    r115 r168  
    7878        scrollbar $itk_interior.ysbar -orient vertical
    7979    }
     80
     81    # we don't fix scrollbars when window is withdrawn, so
     82    # fix them whenever a window pops up
     83    bind $itk_component(hull) <Map> "
     84        [itcl::code $this _fixsbar x]
     85        [itcl::code $this _fixsbar y]
     86    "
    8087
    8188    grid rowconfigure $itk_component(hull) 0 -weight 1
     
    177184# ----------------------------------------------------------------------
    178185itcl::body Rappture::Scroller::_fixsbar {which {state ""}} {
     186    if {![winfo ismapped $itk_component(hull)]} {
     187        #
     188        # If we're not on yet screen, bail out!  This keeps bad
     189        # numbers (from an empty or partially constructed widget)
     190        # from prematurely influencing the scrollbar.
     191        #
     192        return
     193    }
     194
    179195    if {$state == ""} {
    180196        switch -- [string tolower $itk_option(-${which}scrollmode)] {
Note: See TracChangeset for help on using the changeset viewer.