Overview
Artifact ID: | 59db5d3b8ebda2017f65900b830ac4c6f1f16987 |
---|---|
Ticket: | 72a5727d1b7fb76b32cea032eb7d4bf7c6fa28bf
ScrollableFrame changes width upon unmap and map events |
User & Date: | oehhar 2016-10-13 14:31:46 |
Changes
- assignee changed to: "nobody"
- closer changed to: "nobody"
- cmimetype changed to: "text/x-fossil-wiki"
- comment changed to:
Follwing ticket copied from tcllib tracker: [http://core.tcl.tk/tcllib/tktview/9d21e52e39c37d9521e8d34da3b301219b8f909c] As stated in the title, the ScrollableFrame changes width upon unmap and map events. See: [https://groups.google.com/forum/#!topic/comp.lang.tcl/Q5prg9lsOYc] I have found the bug and solved it. Here are the original and modified procedures: <verbatim> proc ScrollableFrame::_frameConfigure {canvas {unmap 0}} { # This ensures that we don't get funny scrollability in the frame # when it is smaller than the canvas space # use [winfo] to get height & width of frame # [winfo] doesn't work for unmapped frame set frameh [expr {$unmap ? 0 : [winfo height $canvas.frame]}] set framew [expr {$unmap ? 0 : [winfo width $canvas.frame]}] set height [_max $frameh [winfo height $canvas]] set width [_max $framew [winfo width $canvas]] $canvas:cmd configure -scrollregion [list 0 0 $width $height] } </verbatim> This is the modified above procedure. <verbatim> proc ScrollableFrame::_frameConfigure {canvas {unmap 0}} { # This ensures that we don't get funny scrollability in the frame # when it is smaller than the canvas space # use [winfo] to get height & width of frame # [winfo] doesn't work for unmapped frame if {$unmap} { return } set frameh [winfo height $canvas.frame] set framew [winfo width $canvas.frame] set height [_max $frameh [winfo height $canvas]] set width [_max $framew [winfo width $canvas]] $canvas:cmd configure -scrollregion [list 0 0 $width $height] } </verbatim>
- foundin changed to: "1.9.10"
- is_private changed to: "0"
- login: "oehhar"
- priority changed to: "5 Medium"
- private_contact changed to: "0f366eb3e9e2fcab52b8ebacd197db9047186a5f"
- resolution changed to: "None"
- severity changed to: "Minor"
- status changed to: "Open"
- submitter changed to: "oehhar"
- subsystem changed to: "bwidget 1.x"
- title changed to:
ScrollableFrame changes width upon unmap and map events
- type changed to: "Bug"