I am using BWidget
's ScrolledWindow
in a code like this:
toplevel .top
set w [ScrolledWindow .top.scrolledWindow]
set f [ScrollableFrame $w.scrollableFrame -constrainedwidth true]
$w setwidget $f
set a [$f getframe]
# here goes some stuff in $a
So I get a window with vertical scrollbar. When increasing the height of .top
, after some moment all the content in $a
becomes visible and the scrollbar disappears as it is not needed anymore. How can I forbid further increasing the height of .top
? i.e. I need to set the maximum height of .top
to the value when all content of $a is visible. How can I do that ?