summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHosang Kim <hosang12.kim@samsung.com>2014-06-25 11:27:08 +0900
committerDaniel Juyung Seo <seojuyung2@gmail.com>2014-06-25 11:27:08 +0900
commitb03197a88b09c30ab75fc8311d5f4314c0539370 (patch)
treeb2ee743f77509276fdfc573a7fa2f9e09638554a
parentcad104d440c84b09a71231dafded78bb862b5a28 (diff)
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
-rw-r--r--src/lib/elm_toolbar.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/lib/elm_toolbar.c b/src/lib/elm_toolbar.c
index de4f7e165..55ec9f82b 100644
--- a/src/lib/elm_toolbar.c
+++ b/src/lib/elm_toolbar.c
@@ -537,13 +537,9 @@ _resize_job(void *data)
537 else 537 else
538 { 538 {
539 if (sd->vertical) 539 if (sd->vertical)
540 { 540 h = (vh >= mh) ? vh : mh;
541 if ((vh >= mh) && (h != vh)) h = vh;
542 }
543 else 541 else
544 { 542 w = (vw >= mw) ? vw : mw;
545 if ((vw >= mw) && (w != vw)) w = vw;
546 }
547 EINA_INLIST_FOREACH(sd->items, it) 543 EINA_INLIST_FOREACH(sd->items, it)
548 { 544 {
549 if (it->selected) 545 if (it->selected)