From bb856db30c84ee6bda352b8dda213377d7dbcf2b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mart=C3=ADn=20Lucas=20Golini?= Date: Thu, 23 May 2019 21:27:20 -0300 Subject: [PATCH] Fix. --HG-- branch : dev --- src/eepp/ui/uilinearlayout.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/eepp/ui/uilinearlayout.cpp b/src/eepp/ui/uilinearlayout.cpp index 93dd64b9c..ecd7409d4 100644 --- a/src/eepp/ui/uilinearlayout.cpp +++ b/src/eepp/ui/uilinearlayout.cpp @@ -70,7 +70,7 @@ void UILinearLayout::pack() { void UILinearLayout::packVertical() { bool sizeChanged = false; - Sizef size; + Sizef size( getSize() ); if ( getLayoutWidthRules() == MATCH_PARENT && 0 == mLayoutWeight ) { Float w = getParent()->getSize().getWidth() - mLayoutMargin.Left - mLayoutMargin.Right; @@ -98,7 +98,7 @@ void UILinearLayout::packVertical() { if ( (int)h != (int)getSize().getHeight() ) { sizeChanged = true; - size.setWidth( h ); + size.setHeight( h ); } } @@ -222,7 +222,7 @@ void UILinearLayout::packVertical() { void UILinearLayout::packHorizontal() { bool sizeChanged = false; - Sizef size; + Sizef size( getSize() ); if ( getLayoutWidthRules() == MATCH_PARENT ) { Float w = getParent()->getSize().getWidth() - mLayoutMargin.Left - mLayoutMargin.Right;