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

fix(layout): resolve issues with IE and calc() in flexbox #6898

Closed
wants to merge 1 commit into from

Conversation

ThomasBurleson
Copy link
Contributor

Fixes #6849.

IE has issues with `calc()` usages in flex styles; replace with 33.33% and 66.66%.
@ThomasBurleson
Copy link
Contributor Author

@topherfangio - can you review ?

@ThomasBurleson ThomasBurleson added the needs: review This PR is waiting on review from the team label Jan 28, 2016
@ThomasBurleson ThomasBurleson added this to the 1.0.4 milestone Jan 28, 2016
@ThomasBurleson ThomasBurleson self-assigned this Jan 28, 2016
@topherfangio
Copy link
Contributor

@ThomasBurleson LGTM - Do you recall why you changed it to calc in the first place?

@ThomasBurleson
Copy link
Contributor Author

@topherfangio - previously (1.0.2), the setting was

flex : 1 1 33%
flex : 1 1 66%

these were not precise enough (leaving a potential 1% gap)

flex: 1 1 calc(100% / 3)
flex: 1 1 calc(200% / 3)

would resolve that, but has issues in IE. So the compromise is:

flex: 1 1 33.33%;
flex: 1 1 66.66%;

@ThomasBurleson ThomasBurleson 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 Jan 28, 2016
@topherfangio
Copy link
Contributor

Gotcha. Sounds good to me :-)

@ThomasBurleson ThomasBurleson added the P0: critical Critical issues that must be addressed immediately. label Jan 28, 2016
@ThomasBurleson ThomasBurleson deleted the wip/fix-layout-calc branch January 29, 2016 21:08
ErinCoughlan pushed a commit to ErinCoughlan/material that referenced this pull request Feb 9, 2016
IE has issues with `calc()` usages in flex styles; replace with 33.33% and 66.66%.

  Closes angular#6898
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
P0: critical Critical issues that must be addressed immediately. 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.

2 participants