Fixed the popup to fit the full screen width
[apps/native/ug-mobile-ap.git] / src / mh_popup.c
index 397474b..6816988 100755 (executable)
@@ -556,6 +556,7 @@ Eina_Bool _create_popup(mh_appdata_t *ad)
 
        case MH_POPUP_WIFI_OFF:
                popup = elm_popup_add(ad->win);
+               elm_popup_align_set(popup, ELM_NOTIFY_ALIGN_FILL, 1.0);
                ad->popup = popup;
 
                elm_object_domain_translatable_part_text_set(popup, "title,text", PACKAGE,
@@ -591,6 +592,7 @@ Eina_Bool _create_popup(mh_appdata_t *ad)
        case MH_POPUP_FLIGHT_MODE:
        case MH_POPUP_NETWORK_OUT_OF_RANGE:
                popup = elm_popup_add(ad->win);
+               elm_popup_align_set(popup, ELM_NOTIFY_ALIGN_FILL, 1.0);
                ad->popup = popup;
                evas_object_size_hint_weight_set(popup, EVAS_HINT_EXPAND,
                                EVAS_HINT_EXPAND);
@@ -618,6 +620,7 @@ Eina_Bool _create_popup(mh_appdata_t *ad)
 
        case MH_POPUP_MOBILE_DATA_OFF:
                popup = elm_popup_add(ad->win);
+               elm_popup_align_set(popup, ELM_NOTIFY_ALIGN_FILL, 1.0);
                ad->popup = popup;
                evas_object_size_hint_weight_set(popup, EVAS_HINT_EXPAND,
                                EVAS_HINT_EXPAND);
@@ -647,6 +650,7 @@ Eina_Bool _create_popup(mh_appdata_t *ad)
 
        case MH_POPUP_WIFI_AP_OFF:
                popup = elm_popup_add(ad->win);
+               elm_popup_align_set(popup, ELM_NOTIFY_ALIGN_FILL, 1.0);
                ad->popup = popup;
                evas_object_size_hint_weight_set(popup,
                                EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);