[RingView] Add missing hints. 09/108009/3
authorKamil Lipiszko <k.lipiszko@samsung.com>
Mon, 2 Jan 2017 09:53:09 +0000 (10:53 +0100)
committerLukasz Stanislawski <l.stanislaws@samsung.com>
Wed, 4 Jan 2017 11:34:00 +0000 (03:34 -0800)
Change-Id: I11b9b703f29651715bdcb77f3a118a112cf12888

clock/src/View/RingView.cpp

index c83df59..9706839 100644 (file)
@@ -50,11 +50,15 @@ RingView::RingView()
                return;
        }
 
+       elm_win_autodel_set(win_, EINA_FALSE);
        elm_win_indicator_mode_set(win_, ELM_WIN_INDICATOR_SHOW);
        elm_win_indicator_opacity_set(win_, ELM_WIN_INDICATOR_OPAQUE);
-       elm_win_autodel_set(win_, EINA_FALSE);
 
        Evas_Object *conformant = elm_conformant_add(win_);
+
+       evas_object_size_hint_align_set(conformant, EVAS_HINT_FILL, EVAS_HINT_FILL);
+       evas_object_size_hint_weight_set(conformant, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
+
        elm_win_resize_object_add(win_, conformant);
 
        layout_ = elm_layout_add(conformant);
@@ -72,6 +76,8 @@ RingView::RingView()
                return;
        }
 
+       elm_object_content_set(conformant, layout_);
+
        elm_object_translatable_part_text_set(layout_, "txt.hours", "IDS_COM_BODY_HOURS");
        elm_object_translatable_part_text_set(layout_, "txt.minutes", "IDS_COM_BODY_MINUTES");
        elm_object_translatable_part_text_set(layout_, "txt.seconds", "IDS_COM_BODY_SECONDS");
@@ -79,8 +85,6 @@ RingView::RingView()
        evas_object_size_hint_align_set(layout_, EVAS_HINT_FILL, EVAS_HINT_FILL);
        evas_object_size_hint_weight_set(layout_, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
 
-       elm_object_content_set(conformant, layout_);
-
        evas_object_show(layout_);
        evas_object_show(conformant);
        evas_object_show(win_);