Famous / famous-angular

Bring structure to your Famo.us apps with the power of AngularJS. Famo.us/Angular integrates seamlessly with existing Angular and Famo.us apps.
https://famo.us/angular
Mozilla Public License 2.0
1.92k stars 275 forks source link

fa-surface fa-origin does not work with fa-size=[true,true] #240

Closed csumudu closed 9 years ago

csumudu commented 10 years ago

when we set true size surface with fa-align=[0.5,0.5] and fa-origin=[0.5,0.5] it always align to 0,0 position where as in vanilla famou.us it works as expented

andrelevi commented 10 years ago

fa-align and fa-origin are fa-modifier attributes. Since fa-surface doesn't acknowledge them, it defaults to [0,0] origin. Try sticking them on an fa-modifier wrapping your fa-surface, like:

<fa-modifier fa-align="[0.5, 0.5]" fa-origin="[0.5, 0.5]">
    <fa-surface fa-size="[true, true]">
    </fa-surface>
</fa-modifier>
zackbrown commented 10 years ago

+1, @andrelevi . @csumudu , did this resolve your issue?

csumudu commented 10 years ago

Thanks. it works :+1:

pencilcheck commented 9 years ago

Somehow when I do fa-origin="[0.5, 1]" fa-align="[0.5, 1]", the element went below the screen.

jordanpapaleo commented 9 years ago

Closing per csmundu's comments on October 31.