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