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

(-)a/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ComboBox.cs (-7 / +8 lines)
Lines 2498-2509 namespace System.Windows.Forms Link Here
2498
						vscrollbar_ctrl.Value = hli;
2498
						vscrollbar_ctrl.Value = hli;
2499
					}
2499
					}
2500
				}
2500
				}
2501
				
2501
2502
				Size = new Size (width, height);
2502
				var borderWidth = Hwnd.GetBorderWidth (CreateParams);
2503
				textarea_drawable = ClientRectangle;
2503
				var borderAdjustment = dropdown_style == ComboBoxStyle.Simple ? new Size (0, 0) :
2504
				textarea_drawable.Width = width;
2504
					new Size (borderWidth.top + borderWidth.bottom, borderWidth.left + borderWidth.right);
2505
				textarea_drawable.Height = height;
2505
				Size = new Size (width, height + borderAdjustment.Height);
2506
				
2506
				textarea_drawable = new Rectangle (ClientRectangle.Location,
2507
					new Size (width - borderAdjustment.Width, height));
2508
2507
				if (vscrollbar_ctrl != null && show_scrollbar)
2509
				if (vscrollbar_ctrl != null && show_scrollbar)
2508
					textarea_drawable.Width -= vscrollbar_ctrl.Width;
2510
					textarea_drawable.Width -= vscrollbar_ctrl.Width;
2509
2511
2510
- 

Return to bug 2462