Author: kmachalkova Date: Thu Jun 7 17:53:20 2007 New Revision: 38351 URL: http://svn.opensuse.org/viewcvs/yast?rev=38351&view=rev Log: Do not add extra vertical space to CheckBoxFrame widget (expand only horizontally so that check box fits in) Modified: trunk/ncurses/VERSION trunk/ncurses/package/yast2-ncurses.changes trunk/ncurses/src/NCCheckBoxFrame.cc Modified: trunk/ncurses/VERSION URL: http://svn.opensuse.org/viewcvs/yast/trunk/ncurses/VERSION?rev=38351&r1=38350&r2=38351&view=diff ============================================================================== --- trunk/ncurses/VERSION (original) +++ trunk/ncurses/VERSION Thu Jun 7 17:53:20 2007 @@ -1 +1 @@ -2.15.17 +2.15.18 Modified: trunk/ncurses/package/yast2-ncurses.changes URL: http://svn.opensuse.org/viewcvs/yast/trunk/ncurses/package/yast2-ncurses.changes?rev=38351&r1=38350&r2=38351&view=diff ============================================================================== --- trunk/ncurses/package/yast2-ncurses.changes (original) +++ trunk/ncurses/package/yast2-ncurses.changes Thu Jun 7 17:53:20 2007 @@ -1,4 +1,11 @@ ------------------------------------------------------------------- +Thu Jun 7 17:48:20 CEST 2007 - kmachalkova@suse.cz + +- Do not add extra vertical space to CheckBoxFrame widget (expand + only horizontally so that check box fits in) +- 2.15.18 + +------------------------------------------------------------------- Wed Jun 6 13:18:39 CEST 2007 - gs@suse.de - Online Update/Package Installation: allow status change and show Modified: trunk/ncurses/src/NCCheckBoxFrame.cc URL: http://svn.opensuse.org/viewcvs/yast/trunk/ncurses/src/NCCheckBoxFrame.cc?rev=38351&r1=38350&r2=38351&view=diff ============================================================================== --- trunk/ncurses/src/NCCheckBoxFrame.cc (original) +++ trunk/ncurses/src/NCCheckBoxFrame.cc Thu Jun 7 17:53:20 2007 @@ -72,11 +72,14 @@ // long NCCheckBoxFrame::nicesize( YUIDimension dim ) { + //space to add - keep vertical dim, add horizontal space + //for checkbox + wpair plussize = wpair(0,4); defsze = wsze( YContainerWidget::child(0)->nicesize( YD_VERT ), YContainerWidget::child(0)->nicesize( YD_HORIZ ) ); if ( label.width() > (unsigned)defsze.W ) defsze.W = label.width(); - defsze += framedim.Sze + 4; // add space for check box + defsze += framedim.Sze + plussize; return dim == YD_HORIZ ? defsze.W : defsze.H; } -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org