-
Notifications
You must be signed in to change notification settings - Fork 768
useColumnBasisZero:false not applied in production builds #1035
Comments
In both cases, using latest version of Flex Layout, I'm getting |
I've published the output of the production build (--prod) of the provided sample using ngh in: https://gerardcarbo.github.io/flex-layout-test/ As you can see, using the latest @angular/flex-layou 7.0.0-beta.23, it sets flex: 1 1 1e-09px to the span: |
I can not provide you a stackblitz demo because the problem is in the production build (ng build --prod) but I have rechecked in a clean ubuntu instalation and you can reproduce the bug with:
|
I don't know if that helps, on my app: |
Issue still exists in 7.0.0-beta.24 |
Experiencing this issue as well exactly as described, not been able to successfully reproduce it outside of my production codebase. |
The problem only occurs when building using AOT |
If someone updates this to v9 Angular and the nightly Flex Layout builds, I'll investigate before the (planned) Tuesday release. |
No response for a year, resolving as stale. If this is still an issue with v13, we can investigate. |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Bug Report
What is the expected behavior?
When FlexLayoutModule.withConfig({useColumnBasisZero: false}) is specified, fxFlex default output shoud be flex:1 1 auto
What is the current behavior?
In production builds it still produces flex: 1 1 1e-9px
What are the steps to reproduce?
Install:
https://github.com/gerardcarbo/flex-layout-test
and run:
npm build && npm start
The span where fxFlex is applied has the style:
style="flex: 1 1 1e-09px; box-sizing: border-box"
If you run:
ng serve
the same span has the style:
style="flex: 1 1 auto; box-sizing: border-box;"
Which versions of Angular, Material, OS, TypeScript, browsers are affected?
Is there anything else we should know?
To generate the test I just ran ng new, configured --prod flag and added the fxFlex to the span after installing @angular/flex-layout module
The text was updated successfully, but these errors were encountered: