Hello all,
I've been trying to figure out why I can get an image to fit into a
scrolledwindow exactly. If you run the included example (and amusing
picture), and scroll to the extreme bottom or extreme left, there is a
good 10 pixels or so of background panel (red for visualization). The
sizer does not have a border added, so I'm a bit stumped.
Hello all,
I've been trying to figure out why I can get an image to fit into a
scrolledwindow exactly. If you run the included example (and amusing
picture), and scroll to the extreme bottom or extreme left, there is a
good 10 pixels or so of background panel (red for visualization). The
sizer does not have a border added, so I'm a bit stumped.
Scrolled windows use a virutal size that is some multiple of the scroll rate. If the requested virtual size is not an exact multiple of the scroll rate then it will be rounded up to the next multiple, which will result in a bit of extra space in the scroll range.
Okay, thanks Robin. That actually makes a good deal of sense.
Scott
···
On Tue, Sep 1, 2009 at 12:51 AM, Robin Dunn<robin@alldunn.com> wrote:
DrBloodmoney wrote:
Hello all,
I've been trying to figure out why I can get an image to fit into a
scrolledwindow exactly. If you run the included example (and amusing
picture), and scroll to the extreme bottom or extreme left, there is a
good 10 pixels or so of background panel (red for visualization). The
sizer does not have a border added, so I'm a bit stumped.
Scrolled windows use a virutal size that is some multiple of the scroll
rate. If the requested virtual size is not an exact multiple of the
scroll rate then it will be rounded up to the next multiple, which will
result in a bit of extra space in the scroll range.