Fix a resizing bug.

When trying to resize it didn't take the border size in account, which
will cause resizing to fail due to the adding of the border size later
on.
This commit is contained in:
Mark de Wever 2009-04-25 16:20:47 +00:00
parent 701f259e5d
commit 40a4f1c6e0

View file

@ -46,12 +46,12 @@ void tcontainer_::NEW_layout_init(const bool full_initialization)
void tcontainer_::NEW_reduce_width(const unsigned maximum_width) void tcontainer_::NEW_reduce_width(const unsigned maximum_width)
{ {
grid_.NEW_reduce_width(maximum_width); grid_.NEW_reduce_width(maximum_width - border_space().x);
} }
void tcontainer_::NEW_reduce_height(const unsigned maximum_height) void tcontainer_::NEW_reduce_height(const unsigned maximum_height)
{ {
grid_.NEW_reduce_height(maximum_height); grid_.NEW_reduce_height(maximum_height - border_space().y);
} }
void tcontainer_::layout_wrap(const unsigned maximum_width) void tcontainer_::layout_wrap(const unsigned maximum_width)