wd->angle = angle;
+ evas_object_resize(obj, 0, 0);
+ evas_object_resize(obj, wd->scr_w, wd->h);
switch (angle) {
case 0:
case 180:
quickpanel_activenoti_set_display_mode(false);
g_isLandscape = false;
- evas_object_resize(obj, wd->scr_w, wd->h);
evas_object_move(obj, 0, 0);
break;
case 90:
quickpanel_activenoti_set_display_mode(true);
g_isLandscape = true;
- evas_object_resize(obj, wd->scr_h, wd->h);
- evas_object_move(obj, 0, 0);
+ evas_object_move(obj, 0, ((wd->scr_h - wd->scr_w) /2));
break;
case 270:
quickpanel_activenoti_set_display_mode(true);
g_isLandscape = true;
- evas_object_resize(obj, wd->scr_h, wd->h);
- evas_object_move(obj, wd->scr_w - wd->h, 0);
+ evas_object_move(obj, wd->scr_w - wd->h, ((wd->scr_h - wd->scr_w) /2));
break;
default:
ERR("cannot reach here");
evas_object_data_set(obj, E_DATA_KEY, wd);
DBG("Set WINDOW internal data : width %d scr_w : %d height : %d scr_h : %d angle %d", wd->w, wd->scr_w, wd->h, wd->scr_h, wd->angle);
+ evas_object_resize(obj, 0, 0);
+ evas_object_resize(obj, wd->scr_w, wd->h);
switch (wd->angle) {
case 0:
case 180:
- evas_object_resize(obj, wd->scr_w, wd->h);
evas_object_move(obj, 0, 0);
break;
case 90:
- evas_object_resize(obj, wd->scr_h, wd->h);
- evas_object_move(obj, 0, 0);
+ evas_object_move(obj, 0, ((wd->scr_h - wd->scr_w) /2));
break;
case 270:
- evas_object_resize(obj, wd->scr_h, wd->h);
- evas_object_move(obj, wd->scr_w - wd->h, 0);
+ evas_object_move(obj, wd->scr_w - wd->h, ((wd->scr_h - wd->scr_w) /2));
break;
default:
ERR("cannot reach here");