Bug 48140

Summary: KHelpCenter sometimes resizes window contents when you click Next
Product: [Applications] khelpcenter Reporter: Malcolm Hunter <malcolm.hunter>
Component: generalAssignee: Cornelius Schumacher <schumacher>
Status: RESOLVED FIXED    
Severity: major    
Priority: NOR    
Version: 0.8   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:

Description Malcolm Hunter 2002-09-22 00:37:53 UTC
Version:           0.8 (using KDE 3.0.8 (KDE 3.1 beta2))
Installed from:    compiled sources
Compiler:          gcc version 2.96 20000731 (Red Hat Linux 7.3 2.96-110)
OS:          Linux (i686) release 2.4.18-3

From KHelpCenter itself or help:/ in Konqueror, go to KPaint Introcuction page (help:/kpaint/intro.html). Click the bottom 'Next' hyperlink - the contents of the window shifts to the left.

Also, resizing the window makes the scrollbars appear and disappear at random.
Comment 1 Stephan Kulow 2002-09-22 11:16:17 UTC
I have seen that too. I clicked the bugs.kde.org link in the kmail faq 
(help:/kmail/faq.html) and it resized the HTML widget to three times 
my monitor resolution. 
Comment 2 Frerich Raabe 2003-05-01 06:18:48 UTC
Subject: kdebase/khelpcenter

CVS commit by raabe: 

- Don't allow the KHelpCenter window to grow larger than the desktop; I think
  this allows us to close BR48140 as well which (given the hint that the
  KPaint intro page breaks in both Konqueror and KHelpCenter) is either a
  khtml or a kio_help glitch.
  I cannot reproduce that myself with KDE 3.1.1a and KDE_3_1_BRANCH though,
  and this patch makes sure that KHelpCenter doesn't go crazy no matter what
  wacky HTML kio_help delivers.
CCMAIL:48140-done@bugs.kde.org


  M +3 -0      mainwindow.cpp   1.31


--- kdebase/khelpcenter/mainwindow.cpp  #1.30:1.31
@@ -136,4 +136,7 @@ MainWindow::MainWindow(const KURL &url)
 
     statusBarMessage(i18n("Ready"));
+
+    const QRect rect = kapp->desktop()->availableGeometry( this );
+    setMaximumSize( rect.width(), rect.height() );
 }