client/js/controls/button/button.coffee in rsence-pre-3.0.0.7 vs client/js/controls/button/button.coffee in rsence-pre-3.0.0.8
- old
+ new
@@ -33,9 +33,16 @@
null
click: ->
console.log('no click action defined in HButton') if !@isProduction
+ refresh: ->
+ @base()
+ if @options.defaultKeyClick
+ @toggleCSSClass(@elemId,'action',true)
+ else
+ @toggleCSSClass(@elemId,'action',false)
+
labelPadding: 0
optimizeWidth: ->
_labelWidth = @stringWidth(@label,null,@markupElemIds.label)
_labelWidth += @labelPadding+Math.floor(@rect.height*0.6)
if @rect.width != _labelWidth