- Timestamp:
- Aug 20, 2010, 7:49:45 AM (14 years ago)
- Location:
- trunk/gui/scripts
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gui/scripts/panes.tcl
r1373 r1865 325 325 lappend flist $f 326 326 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)]}] 328 328 } 329 329 } else { … … 373 373 lappend flist $f 374 374 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)]}] 376 376 } 377 377 } else { -
trunk/gui/scripts/scroller.tcl
r1742 r1865 267 267 x { 268 268 if {$state} { 269 if {![_lock active x]} { 270 # grid $itk_component(xsbar) -row 1 -column 0 -sticky ew 271 if {$col == 1} { 272 grid $itk_component(xsbar) -row $row -column $col -sticky ew 273 } 269 if {$col == 1} { 270 grid $itk_component(xsbar) -row $row -column $col -sticky ew 274 271 } 275 272 } else { 276 grid forget $itk_component(xsbar) 277 _lock set x 273 # handle the lock on the "forget" side, so scrollbar 274 # tends to appear, rather than disappear 275 if {![_lock active x]} { 276 grid forget $itk_component(xsbar) 277 _lock set x 278 } 278 279 } 279 280 } 280 281 y { 281 282 if {$state} { 282 if {![_lock active y]} { 283 # grid $itk_component(ysbar) -row 0 -column 1 -sticky ns 284 if {$row == 1} { 285 grid $itk_component(ysbar) -row $row -column $col -sticky ns 286 } 283 if {$row == 1} { 284 grid $itk_component(ysbar) -row $row -column $col -sticky ns 287 285 } 288 286 } else { 289 grid forget $itk_component(ysbar) 290 _lock set y 287 # handle the lock on the "forget" side, so scrollbar 288 # tends to appear, rather than disappear 289 if {![_lock active y]} { 290 grid forget $itk_component(ysbar) 291 _lock set y 292 } 291 293 } 292 294 }
Note: See TracChangeset
for help on using the changeset viewer.