diff options
author | Silenio Quarti <silenio> | 2007-02-23 18:17:33 +0000 |
---|---|---|
committer | Silenio Quarti <silenio> | 2007-02-23 18:17:33 +0000 |
commit | 128f1189a73a60197af2683c6e15c2a2112e6073 (patch) | |
tree | 3899eda91900d8f344cac5f0ef7c0baff6760869 /bundles/org.eclipse.swt/Eclipse SWT/wpf/org/eclipse/swt/widgets/Combo.java | |
parent | 3bcf21099cbb4ceaa65387ce65169aac9724f8c8 (diff) | |
download | eclipse.platform.swt-128f1189a73a60197af2683c6e15c2a2112e6073.tar.gz eclipse.platform.swt-128f1189a73a60197af2683c6e15c2a2112e6073.tar.xz eclipse.platform.swt-128f1189a73a60197af2683c6e15c2a2112e6073.zip |
avoiding OnRender() when calling UpdateLayout()
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT/wpf/org/eclipse/swt/widgets/Combo.java')
-rw-r--r-- | bundles/org.eclipse.swt/Eclipse SWT/wpf/org/eclipse/swt/widgets/Combo.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/wpf/org/eclipse/swt/widgets/Combo.java b/bundles/org.eclipse.swt/Eclipse SWT/wpf/org/eclipse/swt/widgets/Combo.java index 4060d36536..354f9f5e65 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/wpf/org/eclipse/swt/widgets/Combo.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/wpf/org/eclipse/swt/widgets/Combo.java @@ -269,7 +269,7 @@ public void addVerifyListener (VerifyListener listener) { void addWidget () { super.addWidget (); if ((style & SWT.READ_ONLY) == 0) { - OS.UIElement_UpdateLayout (handle); + updateLayout (handle); int name = createDotNetString ("PART_EditableTextBox", false); int template = OS.Control_Template (handle); textHandle = OS.FrameworkTemplate_FindName (template, name, handle); @@ -367,7 +367,7 @@ public Point computeSize (int wHint, int hHint, boolean changed) { OS.GCHandle_Free (size); for (int i = 0; i < itemCount; i++) { OS.Selector_SelectedIndex (handle, i); - OS.UIElement_UpdateLayout (handle); + updateLayout (handle); OS.UIElement_Measure (handle, availSize); size = OS.UIElement_DesiredSize (handle); width = Math.max (width, (int) OS.Size_Width (size)); |