Skip to content
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

fa-origin not working in fa-header-footer-layout #349

Open
jaypanares opened this issue Mar 19, 2015 · 3 comments
Open

fa-origin not working in fa-header-footer-layout #349

jaypanares opened this issue Mar 19, 2015 · 3 comments

Comments

@jaypanares
Copy link

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!

@jordanpapaleo
Copy link
Member

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:

Hi, currently working on a header footer layout and trying to center "Content" using the following code:

Content

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!


Reply to this email directly or view it on GitHub.

@jaypanares
Copy link
Author

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?

@jordanpapaleo
Copy link
Member

With the flat Dom you will need to be aware of you content size.

Sent from my iPhone

On Mar 18, 2015, at 10:55 PM, jaypanares [email protected] wrote:

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?


Reply to this email directly or view it on GitHub.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants