[solved]VerticalLayoutContainer:getUnclippedOuterRect()
Posted: Wed Jan 12, 2011 11:33
For VerticalLayoutContainer,if you do something like this:
you'll get wrong answer.The size of rect is previous,before removeChildWindow.
Later,I did something like this:
then,the rect is right;
Problem's that i need to get the right 'rect' to locate the right position for itself.
Anyone could help? Thanks first
Code: Select all
(VerticalLayoutContainer *)vcPtr->removeChildAtPosition(2);
rect = vcPtr->getUnclippedOuterRect();
you'll get wrong answer.The size of rect is previous,before removeChildWindow.
Later,I did something like this:
Code: Select all
(vcPtr->setPosition(pos);
rect = vcPtr->getUnclippedOuterRect();
then,the rect is right;
Problem's that i need to get the right 'rect' to locate the right position for itself.
Anyone could help? Thanks first