From fd4216f02babda60771b1625b4a1577324b98968 Mon Sep 17 00:00:00 2001 From: Li Zhang Date: Tue, 3 Mar 2015 15:14:25 +0800 Subject: [PATCH] Modify font scale factor to avoid window overflow Change-Id: I4bace4bfc01de72691a365b9730a93300ddd8250 --- ism/extras/efl_panel/isf_panel_efl.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ism/extras/efl_panel/isf_panel_efl.cpp b/ism/extras/efl_panel/isf_panel_efl.cpp index 7303042..5092d61 100644 --- a/ism/extras/efl_panel/isf_panel_efl.cpp +++ b/ism/extras/efl_panel/isf_panel_efl.cpp @@ -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 (); -- 2.7.4