Changeset 168 for trunk/gui/scripts/scroller.tcl
- Timestamp:
- Feb 8, 2006, 5:18:56 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gui/scripts/scroller.tcl
r115 r168 78 78 scrollbar $itk_interior.ysbar -orient vertical 79 79 } 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 " 80 87 81 88 grid rowconfigure $itk_component(hull) 0 -weight 1 … … 177 184 # ---------------------------------------------------------------------- 178 185 itcl::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 179 195 if {$state == ""} { 180 196 switch -- [string tolower $itk_option(-${which}scrollmode)] {
Note: See TracChangeset
for help on using the changeset viewer.