Toolbar: Fixed wrong toolbar resize logic

Summary: When toolbar use ELM_TOOLBAR_SHRINK_SCROLL and toolbar viewport size is decreased rapidly, toolbar box size is not changed.

Test Plan:
elementary_test -> toolbar 2

increase window size -> decrease window size(presto) -> toolbar size is wrong

Reviewers: seoz, woohyun, jaehwan, Hermet, raster

Reviewed By: seoz

Differential Revision: https://phab.enlightenment.org/D1081
This commit is contained in:
Hosang Kim 2014-06-25 11:27:08 +09:00 committed by Daniel Juyung Seo
parent 600ff08ceb
commit 7812ce77fe
1 changed files with 2 additions and 6 deletions

View File

@ -537,13 +537,9 @@ _resize_job(void *data)
else
{
if (sd->vertical)
{
if ((vh >= mh) && (h != vh)) h = vh;
}
h = (vh >= mh) ? vh : mh;
else
{
if ((vw >= mw) && (w != vw)) w = vw;
}
w = (vw >= mw) ? vw : mw;
EINA_INLIST_FOREACH(sd->items, it)
{
if (it->selected)