Fixed TSAM-2503 Added contacts in widget disappear after reset DUT 71/79271/1 submit/tizen/20160710.132724
authorAleksandr Sapozhnik <a.sapozhnik@samsung.com>
Sun, 10 Jul 2016 09:15:19 +0000 (12:15 +0300)
committerAleksandr Sapozhnik <a.sapozhnik@samsung.com>
Sun, 10 Jul 2016 09:15:27 +0000 (12:15 +0300)
Change-Id: I76d2a606d5183ac482913cd326648b97a5f641a0
Signed-off-by: Aleksandr Sapozhnik <a.sapozhnik@samsung.com>
contacts-widget/src/Widget.cpp

index 3cdf509..ee6159d 100644 (file)
@@ -75,6 +75,10 @@ void Widget::onResize(int width, int height)
 {
        bool isLarge = (getType() == WIDGET_SIZE_TYPE_4x4);
        m_MaxCount = GRID_COLS * (isLarge ? LARGE_GRID_ROWS : SMALL_GRID_ROWS);
+
+       if (m_Gengrid) {
+               elm_gengrid_item_size_set(m_Gengrid->getEvasObject(), getWidth() / GRID_COLS, Ui::getScaledValue(ITEM_H));
+       }
 }
 
 void Widget::initializeItems(bundle *content)