[Haiku-commits] r21327 - haiku/trunk/src/kits/interface

jackburton at BerliOS jackburton at mail.berlios.de
Tue Jun 5 13:50:15 CEST 2007


Author: jackburton
Date: 2007-06-05 13:50:15 +0200 (Tue, 05 Jun 2007)
New Revision: 21327
ViewCVS: http://svn.berlios.de/viewcvs/haiku?rev=21327&view=rev

Modified:
   haiku/trunk/src/kits/interface/MenuWindow.cpp
Log:
BMenuFrame overlapped partially with a BMenuScroller. This fixes the 
spurious lines drawn over the menu. Thanks to Stephan for making me 
notice this!


Modified: haiku/trunk/src/kits/interface/MenuWindow.cpp
===================================================================
--- haiku/trunk/src/kits/interface/MenuWindow.cpp	2007-06-05 10:20:06 UTC (rev 21326)
+++ haiku/trunk/src/kits/interface/MenuWindow.cpp	2007-06-05 11:50:15 UTC (rev 21327)
@@ -285,10 +285,9 @@
 	fUpperScroller->SetEnabled(false);
 	fLowerScroller->SetEnabled(true);
 
-	fMenuFrame->ResizeBy(0, -2 * kScrollerHeight);
+	fMenuFrame->ResizeBy(0, -2 * kScrollerHeight - 1);
 	fMenuFrame->MoveBy(0, kScrollerHeight);
 	
-	fMenuFrame->Bounds().PrintToStream();
 	fValue = 0;
 	fLimit = fMenu->Bounds().Height() - (frame.Height() - 2 * kScrollerHeight);
 }




More information about the Haiku-commits mailing list