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-flexible-layout is not updated on option change #184

Closed
oliviercooper opened this issue Aug 27, 2014 · 4 comments
Closed

fa-flexible-layout is not updated on option change #184

oliviercooper opened this issue Aug 27, 2014 · 4 comments

Comments

@oliviercooper
Copy link

Hi,

I tried successfully the grid-layout example with "dimensions" option updated dynamically, as mentioned here :
#132

When using the flexible-layout view and changing the "ratios" option in the same way, there's no updates.

Oliver

@zackbrown
Copy link
Contributor

This should be fixed by #202 — if you pull down master this should now work.

@Odonno
Copy link

Odonno commented Jan 10, 2015

It works for "fa-grid-layout" but the "fa-flexible-layout" does not update (refreshing ratios in options), any time...

@SuPenguin
Copy link
Contributor

In the meanwhile, you could get the node via $famous.find and use the setRatios method. This way you can add a transition effect via the "transition" object into fa-options.

fa-flexible-layout(id='flexible', fa-options='layout')
$scope.layout : {
         ratios: [3,1]
         transition: {
            curve: 'easeOut',
            duration: 200
          }
}

$scope.changeRatios = ()->
         $famous.find('#flexible')[0].renderNode.setRatios([1,3])

@Odonno
Copy link

Odonno commented Jan 11, 2015

Oh yeah ! It works great !

But, there is another bug I don't know how to fix...

Indeed, when I left the page (from the "fa-flexible-layout" to any other), an error (see image) occurs. So, when I want to navigate to any page, the entirely app is "frozen", nothing respond anymore (even in the page)...

capture

From this image, I suppose it's due to the fact children of fa-flexible-layout are removed but the parent item is still there (somewhere).

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

4 participants