Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Update profiler's layout to use flexbox#19786

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Closed

Conversation

@javiereguiluz
Copy link
Member

@javiereguiluzjaviereguiluz commentedAug 30, 2016
edited
Loading

QA
Branch?2.8
Bug fix?yes
New feature?no
BC breaks?no
Deprecations?no
Tests pass?yes
Fixed tickets-
LicenseMIT
Doc PR-

Problem

The layout of the profiler uses some old CSS tricks to make the sidebar look like a same-height sidebar (margin-bottom: -99999px; andpadding-bottom: 99999px;, a largemin-height in the content, etc.)

This works most of the time ... but there are some edge cases where the sidebar looks ugly (it doesn't have the same height as the main content).

Solution

This proposal updates the profiler layout to use CSS flexbox.

  • It looks and behaves exactly like before ... but it also fixes all the edge cases.
  • flexbox has ~90% of global browser support --> so it should be 100% of Symfony developers

Sadlythere is one issue that I cannot solve:

* The "Performance" panel doesn't work on Chrome and Firefox (but it works on Safari!!)
* The problem is that thegetContainerWidth() function intime.html.twig template doesn't return the right value and the generated canvas has a wrong width.

Any clues? It's fixed now!

@eXtreme
Copy link
Contributor

@javiereguiluz Well, the flexbox is a tricky one but the thing you have to do is to addmin-width: 0; (good old css hacks, but for flexbox) to#collector-wrapper.

@javiereguiluz
Copy link
MemberAuthor

@eXtreme your proposal solved the problem brilliantly! Thanks.

So this is now ready to be reviewed and merge/reject it.

@fabpot
Copy link
Member

Thank you@javiereguiluz.

@fabpotfabpot closed thisAug 31, 2016
fabpot added a commit that referenced this pull requestAug 31, 2016
This PR was squashed before being merged into the 2.8 branch (closes#19786).Discussion----------Update profiler's layout to use flexbox| Q             | A| ------------- | ---| Branch?       | 2.8| Bug fix?      | yes| New feature?  | no| BC breaks?    | no| Deprecations? | no| Tests pass?   | yes| Fixed tickets | -| License       | MIT| Doc PR        | -### ProblemThe layout of the profiler uses some old CSS tricks to make the sidebar look like a same-height sidebar (`margin-bottom: -99999px;` and `padding-bottom: 99999px;`, a large `min-height` in the content, etc.)This works most of the time ... but there are some edge cases where the sidebar looks ugly (it doesn't have the same height as the main content).### SolutionThis proposal updates the profiler layout to use CSS flexbox.* It looks and behaves exactly like before ... but it also fixes all the edge cases.* flexbox has ~90% of global browser support --> so it should be 100% of Symfony developers---~~Sadly **there is one issue that I cannot solve**:~~~~* The "Performance" panel doesn't work on Chrome and Firefox (but it works on Safari!!)~~~~* The problem is that the `getContainerWidth()` function in `time.html.twig` template doesn't return the right value and the generated canvas has a wrong width.~~~~Any clues?~~ It's fixed now!Commits-------d986ac0 Update profiler's layout to use flexbox
This was referencedSep 2, 2016
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

4 participants

@javiereguiluz@eXtreme@fabpot@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp