[yast-commit] r68062 - in /trunk/libyui: VERSION package/yast2-libyui.changes src/YDialog.cc
Author: tgoettlicher Date: Wed May 2 16:46:24 2012 New Revision: 68062 URL: http://svn.opensuse.org/viewcvs/yast?rev=68062&view=rev Log: - Fixed bnc#753784: YaST help dialogs appear fullscreen (2.21.4) Modified: trunk/libyui/VERSION trunk/libyui/package/yast2-libyui.changes trunk/libyui/src/YDialog.cc Modified: trunk/libyui/VERSION URL: http://svn.opensuse.org/viewcvs/yast/trunk/libyui/VERSION?rev=68062&r1=68061&r2=68062&view=diff ============================================================================== --- trunk/libyui/VERSION (original) +++ trunk/libyui/VERSION Wed May 2 16:46:24 2012 @@ -1 +1 @@ -2.21.3 +2.21.4 Modified: trunk/libyui/package/yast2-libyui.changes URL: http://svn.opensuse.org/viewcvs/yast/trunk/libyui/package/yast2-libyui.changes?rev=68062&r1=68061&r2=68062&view=diff ============================================================================== --- trunk/libyui/package/yast2-libyui.changes (original) +++ trunk/libyui/package/yast2-libyui.changes Wed May 2 16:46:24 2012 @@ -1,4 +1,10 @@ ------------------------------------------------------------------- +Wed May 2 16:45:38 CEST 2012 - tgoettlicher@suse.de + +- Fixed bnc#753784: YaST help dialogs appear fullscreen +- Version: 2.21.4 + +------------------------------------------------------------------- Thu Apr 12 14:23:02 CEST 2012 - tgoettlicher@suse.de - Fix build with gcc 4.7. Modified: trunk/libyui/src/YDialog.cc URL: http://svn.opensuse.org/viewcvs/yast/trunk/libyui/src/YDialog.cc?rev=68062&r1=68061&r2=68062&view=diff ============================================================================== --- trunk/libyui/src/YDialog.cc (original) +++ trunk/libyui/src/YDialog.cc Wed May 2 16:46:24 2012 @@ -632,7 +632,7 @@ YDialog::showText( const string & text, bool useRichText ) { - // set help text dialog size to 80% of topmost dialogi, respectively 45x15 (default) + // set help text dialog size to 80% of topmost dialog, respectively 45x15 (default) unsigned int dialogWidth = 45; unsigned int dialogHeight = 15; @@ -644,6 +644,13 @@ dialogHeight = (unsigned int) ( (float) dialog->preferredHeight() * 0.8 ); } + // limit dialog to a reasonable size + if ( dialogWidth > 80 || dialogHeight > 25 ) + { + dialogWidth = 80; + dialogHeight = 25; + } + try { YDialog * dialog = YUI::widgetFactory()->createPopupDialog(); -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org
participants (1)
-
tgoettlicher@svn2.opensuse.org