make aspect size requests work properly with autoscroll in shelf.

SVN revision: 66312
This commit is contained in:
Carsten Haitzler 2011-12-18 14:03:15 +00:00
parent 95f9bb1698
commit 2812e15939
1 changed files with 18 additions and 2 deletions

View File

@ -1706,11 +1706,27 @@ _e_gadcon_moveresize_handle(E_Gadcon_Client *gcc)
{
if (e_box_orientation_get(gcc->o_box))
{
w = gcc->min.w;
if ((gcc->aspect.w > 0) && (gcc->aspect.h > 0))
{
w = (h * gcc->aspect.w) / gcc->aspect.h; // ZZZZ
// w = gcc->min.w;
}
else
{
w = gcc->min.w;
}
}
else
{
h = gcc->min.h;
if ((gcc->aspect.w > 0) && (gcc->aspect.h > 0))
{
h = (w * gcc->aspect.h) / gcc->aspect.w; // ZZZZ
// h = gcc->min.h;
}
else
{
h = gcc->min.h;
}
}
}
if (gcc->o_base)