From 3687211931c3586a6f3ed169cf84ab591e83ab54 Mon Sep 17 00:00:00 2001 From: "Olli.Pettay%helsinki.fi" Date: Mon, 10 Apr 2006 17:58:15 +0000 Subject: [PATCH] Bug 333045, select1 initialized by instance data on form load has wrong size, r=allan+aaronr --- extensions/xforms/resources/content/select1.xml | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/extensions/xforms/resources/content/select1.xml b/extensions/xforms/resources/content/select1.xml index 625d84e1fc51..a283e8ba6160 100644 --- a/extensions/xforms/resources/content/select1.xml +++ b/extensions/xforms/resources/content/select1.xml @@ -684,6 +684,7 @@ this.inputField.value = ""; this._selected.setActive(false); this._selected = null; + this.refreshWidth(); return false; } @@ -700,14 +701,16 @@ if (envelope.nodeType == Node.ELEMENT_NODE) { textNode = envelope.firstChild; if (newValue == textNode.nodeValue) { - // value in instance data already selected. Nothin' left - // to do. + // Value in instance data already selected. Need to only + // refresh the width. + this.refreshWidth(); return true; } } else { if (newValue == contentEnvelope.nodeValue) { - // value in instance data already selected. Nothin' left - // to do. + // Value in instance data already selected. Need to only + // refresh the width. + this.refreshWidth(); return true; } }