Author: aschnell Date: Mon Jun 21 17:19:36 2010 New Revision: 62133 URL: http://svn.opensuse.org/viewcvs/yast?rev=62133&view=rev Log: - improved size heuristic a bit for ncurses Modified: trunk/storage/storage/src/include/ep-lib.ycp Modified: trunk/storage/storage/src/include/ep-lib.ycp URL: http://svn.opensuse.org/viewcvs/yast/trunk/storage/storage/src/include/ep-lib.ycp?rev=62133&r1=62132&r2=62133&view=diff ============================================================================== --- trunk/storage/storage/src/include/ep-lib.ycp (original) +++ trunk/storage/storage/src/include/ep-lib.ycp Mon Jun 21 17:19:36 2010 @@ -416,14 +416,14 @@ // anything about the font size or the actually available space nor is // it run when the dialog is resized. + map display_info = UI::GetDisplayInfo(); + boolean textmode = display_info["TextMode"]:false; + integer width = display_info["DefaultWidth"]:1024; + integer max_buttons = 6; - if (Mode::installation()) - { - map display_info = UI::GetDisplayInfo(); - if (display_info["DefaultWidth"]:1024 <= 800) - max_buttons = 3; - } + if ((textmode && width <= 140) || (!textmode && Mode::installation() && width <= 800)) + max_buttons = 3; term ret = `VBox(); -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org