Ignore:
Timestamp:
Aug 20, 2010, 7:49:45 AM (14 years ago)
Author:
mmc
Message:

Fixed the Scroller to favor keeping the scrollbar on screen, so we don't
get stuck in a mode where they disappear.

Fixed the Panes widget to do the layout with reqwidth instead of width.
When the widget first appears, the sashes have a width of 1 pixel, but
they immediately show up as 10 pixels, so the layout was off.

File:
1 edited

Legend:

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

    r1373 r1865  
    325325                lappend flist $f
    326326                if {[info exists itk_component($sash)]} {
    327                     set h [expr {$h - [winfo height $itk_component($sash)]}]
     327                    set h [expr {$h - [winfo reqheight $itk_component($sash)]}]
    328328                }
    329329            } else {
     
    373373                lappend flist $f
    374374                if {[info exists itk_component($sash)]} {
    375                     set w [expr {$w - [winfo width $itk_component($sash)]}]
     375                    set w [expr {$w - [winfo reqwidth $itk_component($sash)]}]
    376376                }
    377377            } else {
Note: See TracChangeset for help on using the changeset viewer.