forked from enlightenment/enlightenment
bugfix: fileman double click auto-resizing now accounts for toolbar/sidebar and accounts for maximized state
T208
This commit is contained in:
parent
0923848dc1
commit
d236e2acec
|
@ -1,3 +1,7 @@
|
||||||
|
2013-07-26 Mike Blumenkrantz
|
||||||
|
|
||||||
|
* fixed bug where double clicking filemanager windows would not correctly autosize
|
||||||
|
|
||||||
2013-06-20 Mike Blumenkrantz
|
2013-06-20 Mike Blumenkrantz
|
||||||
|
|
||||||
* udisks2 support
|
* udisks2 support
|
||||||
|
|
1
NEWS
1
NEWS
|
@ -226,3 +226,4 @@ Fixes:
|
||||||
* fixed bug where e widgets would not unset focus
|
* fixed bug where e widgets would not unset focus
|
||||||
* fixed bug with filemanager setting path with too many spaces when opened from menu
|
* fixed bug with filemanager setting path with too many spaces when opened from menu
|
||||||
* fixed crash when multiple windows shared a remember
|
* fixed crash when multiple windows shared a remember
|
||||||
|
* fixed bug where double clicking filemanager windows would not correctly autosize
|
||||||
|
|
|
@ -624,15 +624,21 @@ e_fwin_zone_find(E_Zone *zone)
|
||||||
static void
|
static void
|
||||||
_e_fwin_bg_mouse_down(E_Fwin *fwin, Evas_Object *obj __UNUSED__, void *event __UNUSED__)
|
_e_fwin_bg_mouse_down(E_Fwin *fwin, Evas_Object *obj __UNUSED__, void *event __UNUSED__)
|
||||||
{
|
{
|
||||||
int x, y, w, h, zx, zy, zw, zh;
|
int x, y, w, h, zx, zy, zw, zh, cx, cy, cw, ch;
|
||||||
|
|
||||||
|
if (fwin->win->border->maximized) e_border_unmaximize(fwin->win->border, fwin->win->border->maximized);
|
||||||
|
if (fwin->win->border->fullscreen) e_border_unfullscreen(fwin->win->border);
|
||||||
e_zone_useful_geometry_get(fwin->win->border->zone, &zx, &zy, &zw, &zh);
|
e_zone_useful_geometry_get(fwin->win->border->zone, &zx, &zy, &zw, &zh);
|
||||||
x = fwin->win->border->x, y = fwin->win->border->y;
|
x = fwin->win->border->x, y = fwin->win->border->y;
|
||||||
if (!e_fm2_optimal_size_calc(fwin->cur_page->fm_obj, zw - x, zh - y, &w, &h)) return;
|
if (!e_fm2_optimal_size_calc(fwin->cur_page->fm_obj, zw - x, zh - y, &w, &h)) return;
|
||||||
|
evas_object_geometry_get(fwin->cur_page->fm_obj, &cx, &cy, &cw, &ch);
|
||||||
if (x + w > zx + zw)
|
if (x + w > zx + zw)
|
||||||
w = zx + zw - x;
|
w = zx + zw - x;
|
||||||
if (y + x > zy + zh)
|
if (y + x > zy + zh)
|
||||||
h = zy + zh - y;
|
h = zy + zh - y;
|
||||||
e_win_resize(fwin->win, w, h);
|
w = w + cx;
|
||||||
|
h = h + cx;
|
||||||
|
e_win_resize(fwin->win, MAX(w, 360), MAX(h, 250));
|
||||||
}
|
}
|
||||||
|
|
||||||
static E_Fwin *
|
static E_Fwin *
|
||||||
|
|
Loading…
Reference in New Issue