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] [Live preview] Improve the appearance of transformed elements when showing margins/paddings #11253

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

Comments

@core-ai-bot
Copy link
Member

Issue by Worie
Thursday Apr 06, 2017 at 11:03 GMT
Originally opened as adobe/brackets#13274


Steps to Reproduce

  1. Enable highlighting elements in Live Preview
  2. Reenable transform to custom-highlightning divs in RemoteFunctions.js (it is not applied atm)
  3. Transform it via CSS, ex. rotate:90deg.
  4. As you can see, the margin/paddings showed differ from those in Chrome DevTools

Expected behavior: Elements are highlighted the same way as DevTools does

Actual behavior: Their size differs due to window.getClientBoundingRect (it includes transform and causes the bugs in calculations)

See adobe/brackets#12949 (comment) for more details.

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