From 89345c7670f5da9973e35693ac019e1b5c50cd07 Mon Sep 17 00:00:00 2001 From: Andrea Paatz Date: Thu, 20 Jan 2005 14:35:51 +0000 Subject: [PATCH] fixed bug in propertygrid git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@51 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61 --- .../Project/Src/Gui/TextArea.cs | 1 - .../Project/Src/Gui/Pads/PropertyPad/PropertyPad.cs | 13 +++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/Libraries/ICSharpCode.TextEditor/Project/Src/Gui/TextArea.cs b/src/Libraries/ICSharpCode.TextEditor/Project/Src/Gui/TextArea.cs index 752db102ec..b4ef551874 100644 --- a/src/Libraries/ICSharpCode.TextEditor/Project/Src/Gui/TextArea.cs +++ b/src/Libraries/ICSharpCode.TextEditor/Project/Src/Gui/TextArea.cs @@ -123,7 +123,6 @@ namespace ICSharpCode.TextEditor if (virtualTop != newVirtualTop) { virtualTop = newVirtualTop; motherTextAreaControl.VScrollBar.Value = virtualTop.Y; - Invalidate(); } } diff --git a/src/Main/Base/Project/Src/Gui/Pads/PropertyPad/PropertyPad.cs b/src/Main/Base/Project/Src/Gui/Pads/PropertyPad/PropertyPad.cs index 54ced7260a..ec0a3a8118 100644 --- a/src/Main/Base/Project/Src/Gui/Pads/PropertyPad/PropertyPad.cs +++ b/src/Main/Base/Project/Src/Gui/Pads/PropertyPad/PropertyPad.cs @@ -124,6 +124,12 @@ namespace ICSharpCode.SharpDevelop.Gui grid = new PropertyGrid(); grid.PropertySort = PropertyService.Get("FormsDesigner.DesignerOptions.PropertyGridSortAlphabetical", false) ? PropertySort.Alphabetical : PropertySort.CategorizedAlphabetical; grid.Dock = DockStyle.Fill; + + comboBox = new ComboBox(); + comboBox.Dock = DockStyle.Top; + comboBox.DropDownStyle = ComboBoxStyle.DropDownList; + comboBox.DrawMode = DrawMode.OwnerDrawFixed; + comboBox.Sorted = true; } @@ -132,15 +138,10 @@ namespace ICSharpCode.SharpDevelop.Gui instance = this; panel = new Panel(); - - comboBox = new ComboBox(); - comboBox.Dock = DockStyle.Top; - comboBox.DropDownStyle = ComboBoxStyle.DropDownList; - comboBox.DrawMode = DrawMode.OwnerDrawFixed; comboBox.DrawItem += new DrawItemEventHandler(ComboBoxDrawItem); comboBox.MeasureItem += new MeasureItemEventHandler(ComboBoxMeasureItem); comboBox.SelectedIndexChanged += new EventHandler(ComboBoxSelectedIndexChanged); - comboBox.Sorted = true; + panel.Controls.Add(grid); panel.Controls.Add(comboBox);