Commit eb4f6a8e0186bc855e7065b923d28cc337bfb8da

Authored by Adeel Kazmi
2 parents 8c6105a9 b5a6dd1c

[dali_1.3.42] Merge branch 'devel/master'

Change-Id: I1ea19c5266fbcea96872789f395fbddc75e95502
examples/simple-layout/custom-layout-impl.cpp
... ... @@ -37,8 +37,8 @@ CustomLayoutPtr CustomLayout::New()
37 37  
38 38 void CustomLayout::OnMeasure( MeasureSpec widthMeasureSpec, MeasureSpec heightMeasureSpec )
39 39 {
40   - auto accumulatedWidth = 0;
41   - auto maxHeight = 0;
  40 + LayoutLength accumulatedWidth = 0;
  41 + LayoutLength maxHeight = 0;
42 42  
43 43 // In this layout we will:
44 44 // Measuring the layout with the children in a horizontal configuration, one after another
... ... @@ -52,7 +52,7 @@ void CustomLayout::OnMeasure( MeasureSpec widthMeasureSpec, MeasureSpec heightMe
52 52 {
53 53 MeasureChild( childLayout, widthMeasureSpec, heightMeasureSpec );
54 54 accumulatedWidth += childLayout->GetMeasuredWidth();
55   - std::max( childLayout->GetMeasuredHeight().mValue, maxHeight );
  55 + std::max( childLayout->GetMeasuredHeight(), maxHeight );
56 56 }
57 57 }
58 58  
... ... @@ -66,14 +66,14 @@ void CustomLayout::OnLayout( bool changed, LayoutLength left, LayoutLength top,
66 66 LayoutLength childLeft( 0 );
67 67  
68 68 // We want to vertically align the children to the middle
69   - auto height = bottom - top;
70   - auto middle = height / 2;
  69 + LayoutLength height = bottom - top;
  70 + LayoutLength middle = height / 2;
71 71  
72 72 // Horizontally align the children to the middle of the space they are given too
73   - auto width = right - left;
  73 + LayoutLength width = right - left;
74 74 int count = GetChildCount();
75   - auto childIncrement = width / count;
76   - auto center = childIncrement / 2;
  75 + LayoutLength childIncrement = width / count;
  76 + LayoutLength center = childIncrement / 2;
77 77  
78 78 // Check layout direction
79 79 auto owner = GetOwner();
... ... @@ -87,12 +87,12 @@ void CustomLayout::OnLayout( bool changed, LayoutLength left, LayoutLength top,
87 87 Dali::Toolkit::Internal::LayoutItemPtr childLayout = GetChildAt( itemIndex );
88 88 if( childLayout != nullptr )
89 89 {
90   - auto childWidth = childLayout->GetMeasuredWidth();
91   - auto childHeight = childLayout->GetMeasuredHeight();
  90 + LayoutLength childWidth = childLayout->GetMeasuredWidth();
  91 + LayoutLength childHeight = childLayout->GetMeasuredHeight();
92 92  
93 93 childTop = middle - (childHeight / 2);
94 94  
95   - auto left = childLeft + center - childWidth / 2;
  95 + LayoutLength left = childLeft + center - childWidth / 2;
96 96  
97 97 childLayout->Layout( left, childTop, left + childWidth, childTop + childHeight );
98 98 childLeft += childIncrement;
... ...
packaging/com.samsung.dali-demo.spec
... ... @@ -2,7 +2,7 @@
2 2  
3 3 Name: com.samsung.dali-demo
4 4 Summary: The OpenGLES Canvas Core Demo
5   -Version: 1.3.41
  5 +Version: 1.3.42
6 6 Release: 1
7 7 Group: System/Libraries
8 8 License: Apache-2.0
... ...