Skip to content
This repository has been archived by the owner on Sep 6, 2021. It is now read-only.

Commit

Permalink
Merge pull request #3333 from adobe/glenn/issue-3326
Browse files Browse the repository at this point in the history
Fix #3326 - highlight drawing problems
  • Loading branch information
RaymondLim committed Apr 3, 2013
2 parents 35fcc66 + 1b86531 commit aeb343b
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/LiveDevelopment/Agents/RemoteFunctions.js
Expand Up @@ -224,7 +224,12 @@ function RemoteFunctions(experimental) {
var elementBounds = element.getBoundingClientRect(),
highlight = window.document.createElement("div"),
styles = window.getComputedStyle(element);


// Don't highlight elements with 0 width & height
if (elementBounds.width === 0 && elementBounds.height === 0) {
return;
}

highlight.className = HIGHLIGHT_CLASSNAME;

var stylesToSet = {
Expand All @@ -241,7 +246,8 @@ function RemoteFunctions(experimental) {
"border-bottom-right-radius": styles.borderBottomRightRadius,
"border-style": "solid",
"border-width": "1px",
"border-color": "rgb(94,167,255)"
"border-color": "rgb(94,167,255)",
"box-sizing": "border-box"
};

var animateStartValues = {
Expand Down

0 comments on commit aeb343b

Please sign in to comment.