Author: mhutch
Date: 2008-01-10 20:15:48 -0500 (Thu, 10 Jan 2008)
New Revision: 92646
Modified:
branches/monodevelop/main/1.0/src/core/MonoDevelop.Projects.Gui/ChangeLog
branches/monodevelop/main/1.0/src/core/MonoDevelop.Projects.Gui/MonoDevelop.Projects.Gui.Completion/ListWindow.cs
Log:
2008-01-10 Zach Lute <[EMAIL PROTECTED]>
* MonoDevelop.Projects.Gui.Completion/ListWindow.cs: Scrollbar
adjustment is
updated even if scrollbar is invisible. (Bug #350973)
Modified:
branches/monodevelop/main/1.0/src/core/MonoDevelop.Projects.Gui/ChangeLog
===================================================================
--- branches/monodevelop/main/1.0/src/core/MonoDevelop.Projects.Gui/ChangeLog
2008-01-11 00:57:21 UTC (rev 92645)
+++ branches/monodevelop/main/1.0/src/core/MonoDevelop.Projects.Gui/ChangeLog
2008-01-11 01:15:48 UTC (rev 92646)
@@ -1,3 +1,8 @@
+2008-01-10 Zach Lute <[EMAIL PROTECTED]>
+
+ * MonoDevelop.Projects.Gui.Completion/ListWindow.cs: Scrollbar
adjustment is
+ updated even if scrollbar is invisible. (Bug #350973)
+
2007-12-14 Lluis Sanchez Gual <[EMAIL PROTECTED]>
* MonoDevelop.Projects.Gui.Completion/CompletionListWindow.cs: Don't
process
Modified:
branches/monodevelop/main/1.0/src/core/MonoDevelop.Projects.Gui/MonoDevelop.Projects.Gui.Completion/ListWindow.cs
===================================================================
---
branches/monodevelop/main/1.0/src/core/MonoDevelop.Projects.Gui/MonoDevelop.Projects.Gui.Completion/ListWindow.cs
2008-01-11 00:57:21 UTC (rev 92645)
+++
branches/monodevelop/main/1.0/src/core/MonoDevelop.Projects.Gui/MonoDevelop.Projects.Gui.Completion/ListWindow.cs
2008-01-11 01:15:48 UTC (rev 92646)
@@ -97,15 +97,14 @@
if (provider == null)
return;
+ scrollbar.Adjustment.Lower = 0;
+ scrollbar.Adjustment.Upper = Math.Max(0,
provider.ItemCount - list.VisibleRows);
+ scrollbar.Adjustment.PageIncrement = list.VisibleRows -
1;
+ scrollbar.Adjustment.StepIncrement = 1;
+
if (list.VisibleRows >= provider.ItemCount) {
this.scrollbar.Hide();
}
- else {
- scrollbar.Adjustment.Lower = 0;
- scrollbar.Adjustment.Upper = provider.ItemCount
- list.VisibleRows;
- scrollbar.Adjustment.PageIncrement =
list.VisibleRows - 1;
- scrollbar.Adjustment.StepIncrement = 1;
- }
this.Resize(this.list.WidthRequest,
this.list.HeightRequest);
}
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches