|
|
|
@ -9,7 +9,7 @@ BI.ColorChooser = BI.inherit(BI.Widget, {
|
|
|
|
|
|
|
|
|
|
_defaultConfig: function () { |
|
|
|
|
return BI.extend(BI.ColorChooser.superclass._defaultConfig.apply(this, arguments), { |
|
|
|
|
baseCls: "bi-color-chooser bi-border", |
|
|
|
|
baseCls: "bi-color-chooser", |
|
|
|
|
value: "", |
|
|
|
|
height: 24, |
|
|
|
|
el: {}, |
|
|
|
@ -18,8 +18,6 @@ BI.ColorChooser = BI.inherit(BI.Widget, {
|
|
|
|
|
|
|
|
|
|
_init: function () { |
|
|
|
|
var self = this, o = this.options; |
|
|
|
|
o.height -= 2; |
|
|
|
|
BI.isNumeric(o.width) && (o.width -= 2); |
|
|
|
|
BI.ColorChooser.superclass._init.apply(this, arguments); |
|
|
|
|
o.value = o.value || ""; |
|
|
|
|
this.combo = BI.createWidget({ |
|
|
|
@ -34,8 +32,8 @@ BI.ColorChooser = BI.inherit(BI.Widget, {
|
|
|
|
|
ref: function (_ref) { |
|
|
|
|
self.trigger = _ref; |
|
|
|
|
}, |
|
|
|
|
width: o.width, |
|
|
|
|
height: o.height |
|
|
|
|
width: o.width - 2, |
|
|
|
|
height: o.height - 2 |
|
|
|
|
}, o.el), |
|
|
|
|
popup: { |
|
|
|
|
el: BI.extend({ |
|
|
|
|