jaehwan pushed a commit to branch master.

commit 40dc2a25c72103c3b01620830e1bde964f96b2fa
Author: Jaehwan Kim <[email protected]>
Date:   Tue Mar 5 15:46:30 2013 +0900

    Revert this commit to fix the problem by the other method.
    Revert "Small bug. In some case, the box cannot be proper size."
    
    This reverts commit ca95166f9a8cb7db8c1557d75f444d76772b2176.
---
 src/lib/elm_toolbar.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/lib/elm_toolbar.c b/src/lib/elm_toolbar.c
index 3b540d0..392f9b8 100644
--- a/src/lib/elm_toolbar.c
+++ b/src/lib/elm_toolbar.c
@@ -486,14 +486,14 @@ _resize_job(void *data)
 
         if (sd->vertical)
           {
-             if (h >= vh) _items_size_fit(obj, &h, vh);
+             if (h > vh) _items_size_fit(obj, &h, vh);
              if (sd->item_count - sd->separator_count > 0)
                eo_do(obj, elm_scrollable_interface_paging_set
                      (0.0, 0.0, 0, (h / (sd->item_count - 
sd->separator_count))));
           }
         else
           {
-             if (w >= vw) _items_size_fit(obj, &w, vw);
+             if (w > vw) _items_size_fit(obj, &w, vw);
              if (sd->item_count - sd->separator_count > 0)
                eo_do(obj, elm_scrollable_interface_paging_set
                      (0.0, 0.0, (w / (sd->item_count - sd->separator_count)), 
0));
@@ -950,13 +950,13 @@ _sizing_eval(Evas_Object *obj)
         if (sd->vertical)
           {
              minw = minw_bx + (w - vw);
-             if (minh_bx < vh) minh_bx = vh;
+             if (minh_bx <= vh) minh_bx = vh;
              else _items_size_fit(obj, &minh_bx, vh);
           }
         else
           {
              minh = minh_bx + (h - vh);
-             if (minw_bx < vw) minw_bx = vw;
+             if (minw_bx <= vw) minw_bx = vw;
              else _items_size_fit(obj, &minw_bx, vw);
           }
      }

-- 

------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_feb

Reply via email to