mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-03-09 04:25:38 +00:00
[XForms] label containing output does not display. Bug 344180, r=doronr+olli
This commit is contained in:
parent
8c50bda914
commit
dfe4cb158b
@ -258,7 +258,19 @@
|
||||
<implementation implements="nsIXFormsUIWidget">
|
||||
<method name="refresh">
|
||||
<body>
|
||||
this.control.value = this.accessors.getValue();
|
||||
// the label control hides/unhides anonymous content based on the
|
||||
// the value we set it to. The control assumes that if the value
|
||||
// comes from a binding or linking attribute that the value we are
|
||||
// setting it to will be null
|
||||
var externalValue = this.hasAttribute("ref") ||
|
||||
this.hasAttribute("bind") ||
|
||||
this.hasAttribute("src");
|
||||
|
||||
if (externalValue) {
|
||||
this.control.value = this.accessors.getValue();
|
||||
} else {
|
||||
this.control.value = null;
|
||||
}
|
||||
return true;
|
||||
</body>
|
||||
</method>
|
||||
|
Loading…
x
Reference in New Issue
Block a user