-
Notifications
You must be signed in to change notification settings - Fork 771
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
fxFlex on Safari #1092
Comments
Not only on Safari, but on Safari on iOS and Samsung default browser the same problem exist. I fixed it by changing |
Can anyone provide a minimal reproduction (e.g. StackBlitz)? |
That piece helped me: /* Safari fix */
div[fxLayout="column"] > div[fxFlex] {
flex: 1 0 auto !important;
} |
Not the right reproduction, |
I have a bg color issue as well with this fix, but it's an easy one. Just set appropriate color on the container one level up. |
try: works for me |
Thanks @k-paxian, Your solution worked for me in both safari and mobile version.
|
Bug Report
What is the expected behavior?
Content should auto position in the center of the page when resizing using a centred fxLayout container.
What is the current behavior?
On Chrome and Firefox it works fine: content is repositioned at center as you resize.
On Safari 12.1.1 it does not: content is fixed at the center of the initial view regardless of resizing (til you interact with the page, clicking a button for example)
What are the steps to reproduce?
Could not make it work on StackBlitz, but here is a simple version of the code
<div fxLayout="column" fxFlexFill>
<div fxFlex>
<div fxLayout="column" fxLayoutAlign="center center" fxFlexFill>
<p> Start editing to see some magic happen :) </p>
</div>
</div>
</div>
Which versions of Angular, Material, OS, TypeScript, browsers are affected?
The text was updated successfully, but these errors were encountered: