[N_SE-39464] in case of the construction with negative rectangle, ScrollPanel/Panel...
authorSungHee Kim <sh.victoria.kim@samsung.com>
Wed, 29 May 2013 09:22:00 +0000 (18:22 +0900)
committerSungHee Kim <sh.victoria.kim@samsung.com>
Wed, 29 May 2013 09:22:00 +0000 (18:22 +0900)
Change-Id: I3a0eca681a111e7b76ad16748ece59487b8ae0af
Signed-off-by: SungHee Kim <sh.victoria.kim@samsung.com>
src/ui/controls/FUiCtrl_Panel.cpp
src/ui/controls/FUiCtrl_ScrollPanel.cpp

index 4eee457..f134cfd 100644 (file)
@@ -97,7 +97,7 @@ _Panel::CreatePanelN(const FloatRectangle& rect, GroupStyle groupStyle)
 
        pPanel->AcquireHandle();
 
-       pPanel->SetBounds(rect);
+       r = pPanel->SetBounds(rect);
        SysTryCatch(NID_UI_CTRL, r == E_SUCCESS, , r, "[%s] Propagating.", GetErrorMessage(r));
 
        return pPanel;
index 9b09327..7d75164 100644 (file)
@@ -197,7 +197,7 @@ _ScrollPanel::CreateScrollPanelN(const FloatRectangle& rect, ScrollPanelScrollDi
                pScrollPanel->SetHorizontalScrollBar(pHorizontalScrollBar);
        }
 
-       pScrollPanel->SetBounds(rect);
+       r = pScrollPanel->SetBounds(rect);
        SysTryCatch(NID_UI_CTRL, r == E_SUCCESS, , r, "[%s] Propagating.", GetErrorMessage(r));
 
        return pScrollPanel;