diff options
Diffstat (limited to 'src/extantz/extantz.c')
-rw-r--r-- | src/extantz/extantz.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/extantz/extantz.c b/src/extantz/extantz.c index ed78b24..b5f272e 100644 --- a/src/extantz/extantz.c +++ b/src/extantz/extantz.c | |||
@@ -228,11 +228,13 @@ static void _on_resize(void *data, Evas *evas EINA_UNUSED, Evas_Object *obj EINA | |||
228 | GLData *gld = &ourGlobals->gld; | 228 | GLData *gld = &ourGlobals->gld; |
229 | Evas_Coord h; | 229 | Evas_Coord h; |
230 | 230 | ||
231 | eo_do(ourGlobals->win, efl_gfx_size_get(&ourGlobals->win_w, &ourGlobals->win_h)); | 231 | efl_gfx_size_get(ourGlobals->win, &ourGlobals->win_w, &ourGlobals->win_h); |
232 | eo_do(ourGlobals->tb, | 232 | evas_obj_size_hint_min_get(ourGlobals->win, NULL, &h); |
233 | evas_obj_size_hint_min_get(NULL, &h), | 233 | |
234 | efl_gfx_size_set(ourGlobals->win_w, h) | 234 | if (10 > h) |
235 | ); | 235 | h = ourGlobals->win_h; |
236 | |||
237 | efl_gfx_size_set(ourGlobals->win, ourGlobals->win_w, h); | ||
236 | // Stop internal windows going under the toolbar. | 238 | // Stop internal windows going under the toolbar. |
237 | evas_object_resize(ourGlobals->mainWindow->layout, ourGlobals->win_w, h); | 239 | evas_object_resize(ourGlobals->mainWindow->layout, ourGlobals->win_w, h); |
238 | #if USE_EPHYSICS | 240 | #if USE_EPHYSICS |