Minor fixes.

--HG--
branch : dev
This commit is contained in:
Martí­n Lucas Golini
2017-04-18 21:03:22 -03:00
parent f66f6c9d1f
commit cd389fa70d
5 changed files with 6 additions and 18 deletions

View File

@@ -42,12 +42,10 @@ void UIRelativeLayout::fixChilds() {
if ( getLayoutWidthRules() == MATCH_PARENT ) {
setInternalWidth( getParent()->getSize().getWidth() - mLayoutMargin.Left - mLayoutMargin.Right );
sendCommonEvent( UIEvent::EventOnSizeChange );
}
if ( getLayoutHeightRules() == MATCH_PARENT ) {
setInternalHeight( getParent()->getSize().getHeight() - mLayoutMargin.Top - mLayoutMargin.Bottom );
sendCommonEvent( UIEvent::EventOnSizeChange );
}
UIControl * child = mChild;