add additional height space for label
authoryanjie.hu <yanjie.hu@samsung.com>
Thu, 28 Mar 2013 12:18:11 +0000 (20:18 +0800)
committeryanjie.hu <yanjie.hu@samsung.com>
Thu, 28 Mar 2013 12:18:11 +0000 (20:18 +0800)
Change-Id: I04185ae1cbfe8c9d985341507fcd32b3611d937a

scl/gwes/efl/sclgraphics-efl.cpp

index 40aff7c..7c9f885 100644 (file)
@@ -655,6 +655,10 @@ CSCLGraphicsImplEfl::draw_text(sclwindow window, const scldrawctx draw_ctx, cons
                         static float _SPACE_RATE = 0.1;
                         calwidth  *= 1 + _SPACE_RATE;
                     }
+                    if (calheight > 0) {
+                        static float _SPACE_RATE = 0.1;
+                        calheight  *= 1 + _SPACE_RATE;
+                    }
 
                     /* FIXME : The following 2 lines are workaround for problem that EFL does not return correct font size */
                     sclint hardcoded_width = find_hardcoded_width(str, font_info.font_size);