Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
39 lines (28 sloc) 827 Bytes
class AreaTitle extends Spine.Controller
className: 'areaTitle'
change: (area) ->
@html("width: #{area.width}px   height: #{area.height}px")
move: (position) ->
@el.css(left: position.left, top:
class Resizing extends Spine.Controller
'start.resize': 'resizeStart'
'resize.element': 'resized'
'end.resize': 'resizeEnd'
constructor: (@stage) ->
super(el: @stage.el)
resizeStart: ->
resized: (e, element) ->
area = element.area()
unless @areaTitle
@append(@areaTitle = new AreaTitle)
left: area.left + area.width + 10,
top: + area.height + 10
resizeEnd: ->
@areaTitle = null
module.exports = Resizing
Something went wrong with that request. Please try again.