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:
parent
701f259e5d
commit
40a4f1c6e0
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||||
|
|
Loading…
Add table
Reference in a new issue