-
Notifications
You must be signed in to change notification settings - Fork 7.6k
Fix #13274 - make Brackets margin/padding remoteHighlight work like Chrome one #13288
Fix #13274 - make Brackets margin/padding remoteHighlight work like Chrome one #13288
Conversation
…rome devtools one
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Change set LGTM
offsetTop = 0; | ||
|
||
// Probably the easiest way to get elements position without including transform | ||
do{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Style nit: space between do
and {
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Good that the 'transform' simulation will happen now on the highlight div.
Good work @Worie 👍 . We want more features like this from you. |
@Worie I had to revert this PR as this breaks the positioning of the highlight div in case the target element is transformed with rotate function. |
Thanks for the feedback. I know that there was an issue with I've got a solution for border issue locally, too, so perhaps this would solve those two - shall I create another PR with my current implementation, or simply commit the changes here? |
|
Right, this property wasn't copied from original element to the highlight div so it had to be misaligned, now it should look good (at least on OSX Sierra). |
@Worie Great 👍 . You can use this branch itself, but raise a new PR. |
This resolves the issue with highlighting a CSS transformed element.
Probably could be a little bit more efficient (do not calculate the real position via
do {} while loop
when the element isn't transformed by CSS) etc. But it does the job. From what I tested it acts just like the Chrome devtools inspector.@petetnt @saurabh95