8000 [WebProfilerBundle] Fix css trick used for offsetting html anchor from fixed header by ogizanagi · Pull Request #23296 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content

[WebProfilerBundle] Fix css trick used for offsetting html anchor from fixed header #23296

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

Merged
merged 1 commit into from
Jul 3, 2017
Merged

[WebProfilerBundle] Fix css trick used for offsetting html anchor from fixed header #23296

merged 1 commit into from
Jul 3, 2017

Conversation

ogizanagi
Copy link
Contributor
Q A
Branch? 3.2
Bug fix? yes (minor DX)
New feature? no
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets N/A
License MIT
Doc PR N/A

The css trick used was incomplete (missing display: block;), which is probably why it has been changed in https://github.com/symfony/symfony/pull/22455/files#diff-7d417267ae50374356ab990c58233a9bR67.
Despite the current version works well, it behaves quite ugly specifically on Chrome:

Before After
juin-25-2017 18-07-01 juin-25-2017 18-07-26

For ref about the trick: https://stackoverflow.com/questions/10732690/offsetting-an-html-anchor-to-adjust-for-fixed-header/13184714#13184714