|
|
|
@ -77,17 +77,6 @@ BI.StateEditor = BI.inherit(BI.Widget, {
|
|
|
|
|
self.fireEvent(BI.StateEditor.EVENT_CLICK_LABEL); |
|
|
|
|
}); |
|
|
|
|
}); |
|
|
|
|
BI.createWidget({ |
|
|
|
|
type: "bi.absolute", |
|
|
|
|
element: this, |
|
|
|
|
items: [{ |
|
|
|
|
el: this.text, |
|
|
|
|
left: 0, |
|
|
|
|
right: 0, |
|
|
|
|
top: 0, |
|
|
|
|
bottom: 0 |
|
|
|
|
}] |
|
|
|
|
}); |
|
|
|
|
this.editor.on(BI.Controller.EVENT_CHANGE, function () { |
|
|
|
|
self.fireEvent(BI.Controller.EVENT_CHANGE, arguments); |
|
|
|
|
}); |
|
|
|
@ -143,10 +132,17 @@ BI.StateEditor = BI.inherit(BI.Widget, {
|
|
|
|
|
self.fireEvent(BI.StateEditor.EVENT_EMPTY, arguments); |
|
|
|
|
}); |
|
|
|
|
BI.createWidget({ |
|
|
|
|
type: "bi.vertical", |
|
|
|
|
scrolly: false, |
|
|
|
|
type: "bi.absolute", |
|
|
|
|
element: this, |
|
|
|
|
items: [this.editor] |
|
|
|
|
items: [ |
|
|
|
|
{ |
|
|
|
|
el: this.text, |
|
|
|
|
inset: 0, |
|
|
|
|
}, { |
|
|
|
|
el: this.editor, |
|
|
|
|
inset: 0, |
|
|
|
|
} |
|
|
|
|
] |
|
|
|
|
}); |
|
|
|
|
this._showHint(); |
|
|
|
|
if (BI.isNotNull(o.text)) { |
|
|
|
|