Modified that items are updated when orientation changed
authorSuhwan_Park <suhwan0927.park@samsung.com>
Thu, 28 Mar 2013 05:26:04 +0000 (14:26 +0900)
committerSuhwan_Park <suhwan0927.park@samsung.com>
Thu, 28 Mar 2013 06:12:42 +0000 (15:12 +0900)
Change-Id: I57bc5528b7ea471d0218a0ce33aa0e07ed115208
Signed-off-by: Suhwan_Park <suhwan0927.park@samsung.com>
src/ui/controls/FUiCtrl_GroupedListViewImpl.cpp
src/ui/controls/FUiCtrl_ListViewImpl.cpp
src/ui/inc/FUiCtrl_GroupedListViewImpl.h
src/ui/inc/FUiCtrl_ListViewImpl.h

index ee506a3..67b9c02 100644 (file)
@@ -1353,15 +1353,12 @@ _GroupedListViewImpl::OnDraw(void)
        }
 }
 
-result
-_GroupedListViewImpl::OnBoundsChanging(const FloatRectangle& bounds)
+void
+_GroupedListViewImpl::OnChangeLayout(_ControlOrientation orientation)
 {
-       if (GetCore().GetBoundsF().width != bounds.width)
-       {
-               __isBoundsChanged = true;
-       }
+       _ControlImpl::OnChangeLayout(orientation);
 
-       return _ControlImpl::OnBoundsChanging(bounds);
+       __isBoundsChanged = true;
 }
 
 void
index 89f6303..c4d3a6f 100644 (file)
@@ -1230,15 +1230,12 @@ _ListViewImpl::OnDraw(void)
        }
 }
 
-result
-_ListViewImpl::OnBoundsChanging(const FloatRectangle& bounds)
+void
+_ListViewImpl::OnChangeLayout(_ControlOrientation orientation)
 {
-       if (GetCore().GetBoundsF().width != bounds.width)
-       {
-               __isBoundsChanged = true;
-       }
+       _ControlImpl::OnChangeLayout(orientation);
 
-       return _ControlImpl::OnBoundsChanging(bounds);
+       __isBoundsChanged = true;
 }
 
 void
index 15993df..bf20f3e 100644 (file)
@@ -227,7 +227,7 @@ public:
 
        virtual void OnDraw(void);
 
-       virtual result OnBoundsChanging(const Tizen::Graphics::FloatRectangle& bounds);
+       virtual void OnChangeLayout(_ControlOrientation orientation);
 
        virtual void OnBoundsChanged(void);
 
index ecae93d..19d36dd 100644 (file)
@@ -209,7 +209,7 @@ public:
 
        virtual void OnDraw(void);
 
-       virtual result OnBoundsChanging(const Tizen::Graphics::FloatRectangle& bounds);
+       virtual void OnChangeLayout(_ControlOrientation orientation);
 
        virtual void OnBoundsChanged(void);