[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-devel
Subject: KDE1.1.2/PATCH khtmlw/forms (Bug #790)
From: Waldo Bastian <bastian () suse ! de>
Date: 1999-09-01 13:26:43
[Download RAW message or body]
HIya,
Thanks to Paul Olav Tvete <paul@troll.no> I was able to produce the
following patch which is supposed to fix bug #790.
Please test it.
Cheers,
Waldo
-- Bug report 790 --
Package: kfm
Version: 1.167
(1) Go to "http://www.sunsetsystems.com/prices.html".
(2) Press the "Socket 7" button.
Notice that the width of the first two drop-down lists is much too
short to accomodate the text to be displayed.
-- End of bug report --
["kdelibs.khtmlw.31-08-99.diff2" (text/plain)]
Index: htmlform.cpp
===================================================================
RCS file: /home/kde/kdelibs/khtmlw/Attic/htmlform.cpp,v
retrieving revision 1.25.4.6
diff -u -r1.25.4.6 htmlform.cpp
--- htmlform.cpp 1999/08/31 10:44:48 1.25.4.6
+++ htmlform.cpp 1999/09/01 13:19:37
@@ -237,12 +237,18 @@
QListBox *lb = (QListBox *)widget;
lb->changeItem( t, lb->count() - 1 );
item = lb->count() - 1;
+ width = lb->maxItemWidth()+20;
+ widget->resize( width, widget->height() );
}
else
{
QComboBox *cb = (QComboBox *)widget;
cb->changeItem( t, cb->count() - 1 );
item = cb->count() - 1;
+ QSize size = widget->sizeHint();
+ widget->resize( size );
+ ascent = size.height() - descent;
+ width = size.width();
}
if ( value( item ).isNull() )
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic