Permalink
Browse files

Output actual frame object

  • Loading branch information...
Koen Bok
Koen Bok committed May 3, 2013
1 parent c02eef3 commit 8001e3a5a3ad3119afe6e5abd6b7ad0bcfe300a0
Showing with 2 additions and 3 deletions.
  1. +2 −3 src/views/view.coffee
@@ -1,4 +1,5 @@
utils = require "../utils"
check = require "check-types"
_ = require "underscore"
{Frame} = require "../primitives/frame"
@@ -39,8 +40,6 @@ class View extends Frame
# Overridable creation hook
@_postCreate?()
if not args.superView
@_insertElement()
@@ -99,7 +98,7 @@ class View extends Frame
minY = utils.min _.pluck @subViews, "minY"
maxY = utils.max _.pluck @subViews, "maxY"
frame =
new Frame
x: minX
y: minY
width: maxX - minX

0 comments on commit 8001e3a

Please sign in to comment.