Modify font scale factor to avoid window overflow 73/36173/1
authorLi Zhang <li2012.zhang@samsung.com>
Tue, 3 Mar 2015 07:14:25 +0000 (15:14 +0800)
committerLi Zhang <li2012.zhang@samsung.com>
Tue, 3 Mar 2015 08:31:42 +0000 (16:31 +0800)
Change-Id: I4bace4bfc01de72691a365b9730a93300ddd8250

ism/extras/efl_panel/isf_panel_efl.cpp

index 7303042da937e2f5e2b5fe211d77131975096f6c..5092d611a43756df42d2a121202b3e61279fe853 100644 (file)
@@ -6421,8 +6421,8 @@ int main (int argc, char *argv [])
     _candidate_height = (int)(_candidate_port_height_min * _height_rate);
     _indicator_height = (int)(_indicator_height * _height_rate);
 
-    _aux_font_size       = (int)(_aux_font_size * _width_rate);
-    _candidate_font_size = (int)(_candidate_font_size * _width_rate);
+    _aux_font_size       = (int)(_aux_font_size * (_width_rate < _height_rate ? _width_rate : _height_rate));
+    _candidate_font_size = (int)(_candidate_font_size * (_width_rate < _height_rate ? _width_rate : _height_rate));
 
     /* Load ISF configuration */
     load_config ();