Permalink
Browse files

updateFill() on initialization for value property definitions

  • Loading branch information...
Benjamin den Boer
Benjamin den Boer committed May 1, 2015
1 parent 7504bd8 commit 0e755dcbe811838ec113538f1889ba928c618de4
Showing with 3 additions and 2 deletions.
  1. +3 −2 framer/Components/SliderComponent.coffee
@@ -50,8 +50,9 @@ class exports.SliderComponent extends Layer
@knob.draggable.propagateEvents = false
@knob.borderRadius = @knob.width
@knob.placeBefore(@fill)
@_updateFrame()
@_updateFill()
@on("change:frame", @_updateFrame)
@on("change:borderRadius", @_setRadius)
@@ -85,7 +86,7 @@ class exports.SliderComponent extends Layer
height: @height + @knob.height
@knob.centerY()
@knob.midX = @fill.width
# @knob.midX = @fill.width
_setRadius: =>
radius = @borderRadius

0 comments on commit 0e755dc

Please sign in to comment.