Changeset 26 for trunk/gui/scripts/pager.tcl
- Timestamp:
- Jul 19, 2005, 1:15:04 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gui/scripts/pager.tcl
r24 r26 401 401 # ---------------------------------------------------------------------- 402 402 itcl::body Rappture::Pager::_fixSize {} { 403 set sw [expr {[winfo screenwidth $itk_component(hull)]-200}] 404 set sh [expr {[winfo screenheight $itk_component(hull)]-200}] 405 403 406 switch -- $itk_option(-arrangement) { 404 407 pages { 405 408 if {$itk_option(-width) <= 0} { 406 update idletasks407 409 set maxw [expr { 408 410 [winfo reqwidth $itk_component(next)] … … 415 417 } 416 418 set maxw [expr {$maxw + 2*$itk_option(-padding)}] 419 if {$maxw > $sw} { set maxw $sw } 417 420 $itk_component(inside) configure -width $maxw 418 421 } else { … … 421 424 422 425 if {$itk_option(-height) <= 0} { 423 update idletasks424 426 set maxh 0 425 427 foreach name $_pages { … … 428 430 } 429 431 set maxh [expr {$maxh + 2*$itk_option(-padding)}] 432 if {$maxh > $sh} { set maxh $sh } 430 433 $itk_component(inside) configure -height $maxh 431 434 } else { … … 435 438 side-by-side { 436 439 if {$itk_option(-width) <= 0} { 437 update idletasks438 440 set maxw [expr { 439 441 [winfo reqwidth $itk_component(next)] … … 447 449 } 448 450 if {$wtotal > $maxw} { set maxw $wtotal } 451 if {$maxw > $sw} { set maxw $sw } 449 452 $itk_component(inside) configure -width $maxw 450 453 } else { … … 453 456 454 457 if {$itk_option(-height) <= 0} { 455 update idletasks456 458 set maxh 0 457 459 foreach name $_pages { … … 460 462 } 461 463 set maxh [expr {$maxh + 2*$itk_option(-padding)}] 464 if {$maxh > $sh} { set maxh $sh } 462 465 $itk_component(inside) configure -height $maxh 463 466 } else {
Note: See TracChangeset
for help on using the changeset viewer.