Permalink
Browse files

No clipping in debug view

  • Loading branch information...
koenbok committed Jan 15, 2013
1 parent b28681d commit 5a947f59025387a0c329daf8072b09dc68663336
Showing with 25 additions and 31 deletions.
  1. +11 −14 build/framer.js
  2. +3 −3 src/debug.coffee
  3. +11 −14 template/framer.js
View
@@ -659,7 +659,6 @@ require.define("/debug.coffee",function(require,module,exports,__dirname,__filen
if (view._debug) {
view._element.removeChild(view._debug.node);
view.style = view._debug.style;
view.clip = view._debug.clip;
_results.push(delete view._debug);
} else {
color = "rgba(50,150,200,.35)";
@@ -672,19 +671,17 @@ require.define("/debug.coffee",function(require,module,exports,__dirname,__filen
node.style.padding = "3px";
view._debug = {
style: utils.extend({}, view.style),
node: node,
clip: view.clip
node: node
};
view._element.appendChild(node);
view.style = {
_results.push(view.style = {
color: "white",
margin: "-1px",
font: "10px/1em Monaco",
backgroundColor: "" + color,
border: "1px solid " + color,
backgroundImage: null
};
_results.push(view.clip = false);
});
}
}
return _results;
@@ -840,14 +837,6 @@ require.define("/views/view.coffee",function(require,module,exports,__dirname,__
}
});
View.prototype.convertPoint = function(point) {
return utils.convertPoint(point, null, this);
};
View.prototype.screenFrame = function() {
return utils.convertPoint(this.frame, this, null);
};
View.define("x", {
get: function() {
return this._x || 0;
@@ -916,6 +905,14 @@ require.define("/views/view.coffee",function(require,module,exports,__dirname,__
}
});
View.prototype.convertPoint = function(point) {
return utils.convertPoint(point, null, this);
};
View.prototype.screenFrame = function() {
return utils.convertPoint(this.frame, this, null);
};
View.define("opacity", {
get: function() {
return this._opacity || 1;
View
@@ -9,7 +9,7 @@ window.document.onkeydown = (event) ->
if view._debug
view._element.removeChild view._debug.node
view.style = view._debug.style
view.clip = view._debug.clip
# view.clip = view._debug.clip
delete view._debug
@@ -28,7 +28,7 @@ window.document.onkeydown = (event) ->
view._debug =
style: utils.extend {}, view.style
node: node
clip: view.clip
# clip: view.clip
view._element.appendChild node
view.style =
@@ -39,7 +39,7 @@ window.document.onkeydown = (event) ->
# boxShadow: "inset 0 0 1px rgba(50,150,200,.8)";
border: "1px solid #{color}"
backgroundImage: null
view.clip = false
# view.clip = false
window.onerror = (e) ->
View
@@ -659,7 +659,6 @@ require.define("/debug.coffee",function(require,module,exports,__dirname,__filen
if (view._debug) {
view._element.removeChild(view._debug.node);
view.style = view._debug.style;
view.clip = view._debug.clip;
_results.push(delete view._debug);
} else {
color = "rgba(50,150,200,.35)";
@@ -672,19 +671,17 @@ require.define("/debug.coffee",function(require,module,exports,__dirname,__filen
node.style.padding = "3px";
view._debug = {
style: utils.extend({}, view.style),
node: node,
clip: view.clip
node: node
};
view._element.appendChild(node);
view.style = {
_results.push(view.style = {
color: "white",
margin: "-1px",
font: "10px/1em Monaco",
backgroundColor: "" + color,
border: "1px solid " + color,
backgroundImage: null
};
_results.push(view.clip = false);
});
}
}
return _results;
@@ -840,14 +837,6 @@ require.define("/views/view.coffee",function(require,module,exports,__dirname,__
}
});
View.prototype.convertPoint = function(point) {
return utils.convertPoint(point, null, this);
};
View.prototype.screenFrame = function() {
return utils.convertPoint(this.frame, this, null);
};
View.define("x", {
get: function() {
return this._x || 0;
@@ -916,6 +905,14 @@ require.define("/views/view.coffee",function(require,module,exports,__dirname,__
}
});
View.prototype.convertPoint = function(point) {
return utils.convertPoint(point, null, this);
};
View.prototype.screenFrame = function() {
return utils.convertPoint(this.frame, this, null);
};
View.define("opacity", {
get: function() {
return this._opacity || 1;

0 comments on commit 5a947f5

Please sign in to comment.