We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hi, currently working on a header footer layout and trying to center "Content" using the following code:
<fa-app id="app" ng-controller="AppController"> <fa-header-footer-layout> <fa-modifier fa-size="[undefined,48]"> <fa-surface fa-background-color="'#009688'"></fa-surface> </fa-modifier> <fa-modifier> <fa-surface fa-background-color="'#f5f5f5'"></fa-surface> <fa-modifier fa-size="[true,true]" fa-origin="[0.5,0.5]" fa-align="[0.5,0.5]"> <fa-surface>Content</fa-surface> </fa-modifier> </fa-modifier> </fa-header-footer-layout> </fa-app>
fa-align seems to work fine but the origin looks to be still on [0,0] when I preview in a browser. Is there something wrong with my code?
Thanks!
The text was updated successfully, but these errors were encountered:
FA size does not support true sizing. Replace [true, true] to see if it fixes your issue.
Sent from my iPhone
On Mar 18, 2015, at 9:08 PM, jaypanares [email protected] wrote:
— Reply to this email directly or view it on GitHub.
Sorry, something went wrong.
Thanks! Align and origin seems to be working as expected now, but does that mean I won't easily be able to auto-resize based on what the content is?
With the flat Dom you will need to be aware of you content size.
On Mar 18, 2015, at 10:55 PM, jaypanares [email protected] wrote:
No branches or pull requests
Hi, currently working on a header footer layout and trying to center "Content" using the following code:
<fa-app id="app" ng-controller="AppController"> <fa-header-footer-layout> <fa-modifier fa-size="[undefined,48]"> <fa-surface fa-background-color="'#009688'"></fa-surface> </fa-modifier> <fa-modifier> <fa-surface fa-background-color="'#f5f5f5'"></fa-surface> <fa-modifier fa-size="[true,true]" fa-origin="[0.5,0.5]" fa-align="[0.5,0.5]"> <fa-surface>Content</fa-surface> </fa-modifier> </fa-modifier> </fa-header-footer-layout> </fa-app>
fa-align seems to work fine but the origin looks to be still on [0,0] when I preview in a browser. Is there something wrong with my code?
Thanks!
The text was updated successfully, but these errors were encountered: