X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git;a=blobdiff_plain;f=dali-toolkit%2Finternal%2Flayouting%2Fflex-layout-impl.cpp;h=0090ec8c7e9e68e43779315f9fdd9c00478d1832;hp=65b46c142852cab5115651c93578bb1d2c0803eb;hb=fbac42bd903f8878efe9e5ecf3c8cca3f217acbb;hpb=a9783f4a9684d20c8b20e34a34e15cae5a773787 diff --git a/dali-toolkit/internal/layouting/flex-layout-impl.cpp b/dali-toolkit/internal/layouting/flex-layout-impl.cpp old mode 100644 new mode 100755 index 65b46c1..0090ec8 --- a/dali-toolkit/internal/layouting/flex-layout-impl.cpp +++ b/dali-toolkit/internal/layouting/flex-layout-impl.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2018 Samsung Electronics Co., Ltd. + * Copyright (c) 2019 Samsung Electronics Co., Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -335,10 +335,11 @@ YGSize FlexLayout::OnChildMeasure( YGNodeRef node, LayoutLength measuredWidth = childLayout->GetMeasuredWidth() - padding.end - padding.start; LayoutLength measuredHeight = childLayout->GetMeasuredHeight() - padding.bottom - padding.top; - return YGSize{ - .width = measuredWidth.AsDecimal(), - .height = measuredHeight.AsDecimal(), - }; + // Create struct instance first and manually set params to support all compiler versions + YGSize ygSize; + ygSize.width = measuredWidth.AsDecimal(); + ygSize.height = measuredHeight.AsDecimal(); + return ygSize; } void FlexLayout::SetChildrenStyle()