[multibuttonentry]items aren't packed when view_mode is set in Calendar app
authorGoun Lee <gouni.lee@samsung.com>
Mon, 20 Feb 2012 08:02:40 +0000 (17:02 +0900)
committerGoun Lee <gouni.lee@samsung.com>
Mon, 20 Feb 2012 08:02:40 +0000 (17:02 +0900)
src/lib/elc_multibuttonentry.c

index 247c1b5..69c1da8 100644 (file)
@@ -872,8 +872,10 @@ _add_button_item(Evas_Object *obj, const char *str, Multibuttonentry_Pos pos, co
                        _set_vis_guidetext(obj);
                      if (wd->entry)
                        {
-                         if (!wd->view_mode)
-                           elm_box_pack_before(wd->box, btn, wd->entry);
+                          if (!wd->view_mode)
+                            elm_box_pack_before(wd->box, btn, wd->entry);
+                          else
+                            elm_box_pack_end(wd->box, btn);
                        }
                      else
                        elm_box_pack_end(wd->box, btn);
@@ -902,6 +904,8 @@ _add_button_item(Evas_Object *obj, const char *str, Multibuttonentry_Pos pos, co
                             {
                                if (!wd->view_mode)
                                  elm_box_pack_before(wd->box, btn, wd->entry);
+                               else
+                                 elm_box_pack_end(wd->box, btn);
                             }
                           else
                             elm_box_pack_end(wd->box, btn);
@@ -930,6 +934,8 @@ _add_button_item(Evas_Object *obj, const char *str, Multibuttonentry_Pos pos, co
                             {
                                if (!wd->view_mode)
                                  elm_box_pack_before(wd->box, btn, wd->entry);
+                               else
+                                 elm_box_pack_end(wd->box, btn);
                             }
                           else
                             elm_box_pack_end(wd->box, btn);