Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[CLOSED] Fix #13274 - make Brackets margin/padding remoteHighlight work like Chrome one #11259

Open
core-ai-bot opened this issue Aug 30, 2021 · 7 comments

Comments

@core-ai-bot
Copy link
Member

Issue by Worie
Sunday Apr 09, 2017 at 13:05 GMT
Originally opened as adobe/brackets#13288


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


Worie included the following code: https://github.com/adobe/brackets/pull/13288/commits

@core-ai-bot
Copy link
Member Author

Comment by swmitra
Monday Apr 10, 2017 at 09:31 GMT


Good work@Worie 👍 . We want more features like this from you.

@core-ai-bot
Copy link
Member Author

Comment by swmitra
Monday Apr 10, 2017 at 09:39 GMT


@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.

@core-ai-bot
Copy link
Member Author

Comment by saurabh95
Monday Apr 10, 2017 at 09:40 GMT


The highlight area of div containing "ARCHITECTURE" is not positioned correctly.

image

@core-ai-bot
Copy link
Member Author

Comment by Worie
Monday Apr 10, 2017 at 10:54 GMT


Thanks for the feedback.

I know that there was an issue with borders when transforming an element, but I haven't seen any problems with rotate@swmitra , nor I'm sure how the site provided by@saurabh95 was implemented. Can you guys please give me a snippet with code which generates those issues?

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?

@core-ai-bot
Copy link
Member Author

Comment by saurabh95
Monday Apr 10, 2017 at 11:35 GMT


transform-origin is used in the above site

#architecture .section-title { position: absolute; z-index: 5; -webkit-transform: rotate(90deg); -webkit-transform-origin: right bottom; transform: rotate(90deg); transform-origin: right bottom; right: 6.5%; top: 43.5%; left: auto; padding: 0 0 0 212px; margin: 0; text-transform: uppercase; }

@core-ai-bot
Copy link
Member Author

Comment by Worie
Monday Apr 10, 2017 at 12:02 GMT


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).
I've pushed my local changes, so I guess I'll create another PR, since this is closed/merged.

@core-ai-bot
Copy link
Member Author

Comment by swmitra
Monday Apr 10, 2017 at 12:06 GMT


@Worie Great 👍 . You can use this branch itself, but raise a new PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant