discomfitor pushed a commit to branch master.

http://git.enlightenment.org/core/enlightenment.git/commit/?id=a04df75462007b01d0deeaf171823904271c7da9

commit a04df75462007b01d0deeaf171823904271c7da9
Author: Mike Blumenkrantz <[email protected]>
Date:   Mon Jun 9 16:15:15 2014 -0400

    apply a tighter clamp to internal window autosize
---
 src/bin/e_utils.c | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/src/bin/e_utils.c b/src/bin/e_utils.c
index a23cfe6..6f66ca8 100644
--- a/src/bin/e_utils.c
+++ b/src/bin/e_utils.c
@@ -823,7 +823,11 @@ _win_auto_size_calc(int max, int min)
      {
         int value = *itr * max;
         if (value > min) /* not >=, try a bit larger */
-          return value;
+          {
+             if (min > 10)
+               value = E_CLAMP(value, min, min * 1.5);
+             return value;
+          }
      }
 
    return min;

-- 


Reply via email to