projects
/
platform
/
core
/
uifw
/
dali-toolkit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[Tizen] support match align for system language direciton on text Field and
[platform/core/uifw/dali-toolkit.git]
/
dali-toolkit
/
internal
/
layouting
/
vbox-layout-impl.cpp
diff --git
a/dali-toolkit/internal/layouting/vbox-layout-impl.cpp
b/dali-toolkit/internal/layouting/vbox-layout-impl.cpp
index
7e33107
..
9d50bda
100755
(executable)
--- a/
dali-toolkit/internal/layouting/vbox-layout-impl.cpp
+++ b/
dali-toolkit/internal/layouting/vbox-layout-impl.cpp
@@
-233,7
+233,7
@@
void VboxLayout::OnLayout( bool changed, LayoutLength left, LayoutLength top, La
auto width = right - left;
// Space available for child
auto width = right - left;
// Space available for child
- auto childSpace = width -
(int)padding.start - (int)padding.end
;
+ auto childSpace = width -
LayoutLength( padding.start ) - LayoutLength( padding.end )
;
auto count = GetChildCount();
for( unsigned int childIndex = 0; childIndex < count; childIndex++)
auto count = GetChildCount();
for( unsigned int childIndex = 0; childIndex < count; childIndex++)
@@
-248,10
+248,10
@@
void VboxLayout::OnLayout( bool changed, LayoutLength left, LayoutLength top, La
auto childMargin = childLayout->GetMargin();
childTop += childMargin.top;
auto childMargin = childLayout->GetMargin();
childTop += childMargin.top;
- childLeft = ( childSpace - childWidth ) / 2 +
(int)childMargin.start - (int)childMargin.end
;
+ childLeft = ( childSpace - childWidth ) / 2 +
LayoutLength( childMargin.start ) - LayoutLength( childMargin.end )
;
childLayout->Layout( childLeft, childTop, childLeft + childWidth, childTop + childHeight );
childLayout->Layout( childLeft, childTop, childLeft + childWidth, childTop + childHeight );
- childTop += childHeight +
(int)childMargin.bottom
+ mCellPadding.height;
+ childTop += childHeight +
LayoutLength( childMargin.bottom )
+ mCellPadding.height;
}
}
}
}
}
}