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

Firefox & flex layout #7382

Closed
char0n opened this issue Mar 2, 2016 · 6 comments
Closed

Firefox & flex layout #7382

char0n opened this issue Mar 2, 2016 · 6 comments
Assignees
Labels
P0: critical Critical issues that must be addressed immediately.
Milestone

Comments

@char0n
Copy link

char0n commented Mar 2, 2016

Hi,

Is there any particular reason why commit(99c9b60) was made ? The min-height, min-width does no longer have influence on chrome 48 but firefox is still affected without these css properties.

Can you please collaborate ?

After upgrading to angular-material 1.0.6 our application which is in holly grail layout broke down. This is the code we had to introduce to be able to run the application on Firefox and to support version 1.0.6

https://gist.github.com/anonymous/a767374e07209ae8fffa

Reproducable on FireFox 44.0.2

@ThomasBurleson
Copy link
Contributor

@char0n - Thank you for this issue. It will be addressed today!

@ThomasBurleson ThomasBurleson added the P0: critical Critical issues that must be addressed immediately. label Mar 2, 2016
@ThomasBurleson ThomasBurleson added this to the 1.0.7 milestone Mar 2, 2016
@ThomasBurleson ThomasBurleson self-assigned this Mar 2, 2016
ThomasBurleson added a commit that referenced this issue Mar 3, 2016
* while Chrome has fixed this bug, Firefox still needs this workaround.

Fixes #7382.
@dholbert
Copy link

dholbert commented Mar 3, 2016

@char0n is there a live page / testcase anywhere that reproduces this issue in Firefox? (using the affected Angular version)

I work on Firefox's layout code, and I'd like to take a closer look at the rendering difference between Firefox & Chrome and see if there's something we need to fix (or if it's a known bug in Firefox, or a known bug in Chrome).

Thanks!

@char0n
Copy link
Author

char0n commented Mar 3, 2016

@dholbert use this repo: https://github.com/char0n/angular1-slack

In bower.json change 1.0.5 to 1.0.6 and the layout will break on Firefox.

@char0n
Copy link
Author

char0n commented Mar 4, 2016

@dholbert I am sorry for lack of info regarding the repo.

Installing process:
$ npm install
$ bower install
Install compass: http://compass-style.org/install/ (after installation it should be in your PATH)

Then you will run
$ grunt serve

Goto: http://localhost:9000/#/conversation

Everything looks good in every browser. On left are channels and on the right there is content area for messages. If messages are higher than content area content area will scroll the messages.

Modify bower.json and change "angular-material": "=1.0.5" to "angular-material": "=1.0.6". Run
$ bower install
$ grunt serve

After opening the page in browser you will see that if messages height is higher that the viewport entire page is scrolling now, not only the content area designated for them.

Hope it is more clearer now. If you have further questions don't hesitate to ask.

@dholbert
Copy link

dholbert commented Mar 7, 2016

Thanks. With that, I was able to reproduce the issue.

The difference between Firefox & Chrome there is due to https://bugs.chromium.org/p/chromium/issues/detail?id=487302 -- i.e. it's a bug with Chrome producing the wrong min-content height, for a flex item that happens to have a scrollable child.

@char0n
Copy link
Author

char0n commented Mar 7, 2016

Cool, so I guess in 1.0,7. will you introduce the min-height fix which was reverted in 1.0.6 ?

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.
Projects
None yet
Development

No branches or pull requests

3 participants