Your message dated Thu, 13 Dec 2007 09:03:12 +0000
with message-id <[EMAIL PROTECTED]>
and subject line Bug #331503 Tk::Scrolled: won't allow widget to grow vertically
has caused the attached Bug report to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere. Please contact me immediately.)
Debian bug tracking system administrator
(administrator, Debian Bugs database)
--- Begin Message ---
Package: perl-tk
Version: 1:804.027-1
If a Scrolled widget is created, it will not allow it to grow vertically
when it's space is changed.
Try this:
perl -e 'use Tk; $a=new MainWindow;
$b=$a->Scrolled("Text",-scrollbars=>"e")->pack(-side=>"top",-fill=>"both",-expand=>0);
MainLoop();'
Then manually resize the window in both X and Y directions. The
scrolled Text region will grow horizontally but not vertically. Text
grows fine on its own, but other widgets behave the same when managed
this way so it's something do do with "Scrolled". Putting the scrollbar
at "n" does not change anything.
Brian
( [EMAIL PROTECTED] )
-------------------------------------------------------------------------------
All is fair in love and war.
--- End Message ---
--- Begin Message ---
As Slaven has commented this is not actually a problem with Tk::Scrolled.
Investigation shows that what you are expecting is the behaviour when you
use expand=>1.
Reading the section "Expanding the Allocation Rectangle" in Chapter 2 of
"Mastering Perl/Tk" (page 29 in my edition) explains what is happening. When
the window is resized the *widget* size changes, but, unless expand is true
then the *Allocation Rectangle* is fixed in one axis, try using
-side=>"left" instead of "top" to see what happens.
It is possible that this is a bug in Tk, however too many applications
probably rely on the behaviour for the Tk maintainers to want to change it.
Bug closed - If you want to take this further then please talk with the
developers of Tk.
--
Colin Tuckley | +44(0)1903 236872 | PGP/GnuPG Key Id
Debian Developer | +44(0)7799 143369 | 0x1B3045CE
There are 10 types of people in the world. Those that know binary, and those
that don't.
--- End Message ---