View | Details | Raw Unified | Return to bug 15462
Collapse All | Expand All

(-)a/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ComboBox.cs (+4 lines)
Lines 2733-2738 namespace System.Windows.Forms Link Here
2733
				HighlightedIndex = owner.SelectedIndex;
2733
				HighlightedIndex = owner.SelectedIndex;
2734
2734
2735
				CalcListBoxArea ();
2735
				CalcListBoxArea ();
2736
				// If the listbox would extend below the screen, move it above the textbox.
2737
				Rectangle scrn_rect = Screen.FromControl(owner).Bounds;
2738
				if (this.Location.Y + this.Height >= scrn_rect.Bottom)
2739
					this.Location = new Point(this.Location.X, this.Location.Y - (this.Height + owner.TextArea.Height));
2736
				Show ();
2740
				Show ();
2737
2741
2738
				Refresh ();
2742
				Refresh ();

Return to bug 15462