-
Notifications
You must be signed in to change notification settings - Fork 275
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
Comments
This should be fixed by #202 — if you pull down master this should now work. |
It works for "fa-grid-layout" but the "fa-flexible-layout" does not update (refreshing ratios in options), any time... |
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]) |
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)... 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). |
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
The text was updated successfully, but these errors were encountered: