Skip to content
This repository has been archived by the owner on Sep 5, 2024. It is now read-only.

fix(layout): Set the initial height to inherit the parent. #4372

Closed
wants to merge 1 commit into from

Conversation

topherfangio
Copy link
Contributor

In some cases, browsers have issues with rendering flex layouts
when the height of an element is not set. This simply forces each
layout element (which is the most common case when using flex) to
the height it would normally be.

Also fixes random icon padding in demo causing the icon to be
mis-aligned.

Fixes #4022. References #3901. Fixes #4130.

@topherfangio topherfangio added this to the 0.11.0 milestone Aug 29, 2015
@topherfangio topherfangio added the pr: merge ready This PR is ready for a caretaker to review label Aug 29, 2015
@topherfangio
Copy link
Contributor Author

@ThomasBurleson Per your request, I tested the demo site in all three browsers and did not see any difference in adding this additional property.

@topherfangio topherfangio added needs: review This PR is waiting on review from the team and removed pr: merge ready This PR is ready for a caretaker to review labels Aug 29, 2015
@topherfangio
Copy link
Contributor Author

@ThomasBurleson Everything was passing locally for me, but when it failed on Travis, I removed my node_modules directory and reran npm install. Now, I'm getting about 125-140 failures on master, and it's not consistent (but it appears to be consistent with Travis).

@ThomasBurleson
Copy link
Contributor

The issue is something in the latest Angular 1.4.5 release. @petebacondarwin, @matsko - can you guys help use investigate? Angular 1.4.4 works fine with our tests and Karma.... Angular 1.4.5 causes many failures.

@ThomasBurleson
Copy link
Contributor

@topherfangio - I temporarily locked our Angular version to 1.4.4; see package.json.

In some cases, browsers have issues with rendering flex layouts
when the height of an element is not set. This simply forces each
layout element (which is the most common case when using flex) to
the height it would normally be.

Fixes #4022. References #3901.
@topherfangio topherfangio added pr: merge ready This PR is ready for a caretaker to review and removed needs: review This PR is waiting on review from the team labels Aug 31, 2015
@topherfangio topherfangio deleted the fix-layout-height-inherit branch August 31, 2015 18:33
kennethcachia pushed a commit to kennethcachia/material that referenced this pull request Sep 23, 2015
call `checkCloseMenu(ev)` with `ev` argument.
ensure references to `ev` are non-null

Fixes angular#4377. Closes angular#4384. Closes angular#4372.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
pr: merge ready This PR is ready for a caretaker to review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Buttons not aligned in official site md-content doesn't work correctly with flex.
2 participants