ng-switch with animation resizing looks buggy

冷暖自知 提交于 2019-12-11 05:38:12

问题


Using ng-switch with animation inside a div container I am struggling to figure out how to avoid the div from resizing when the animation is running see this plunk

If I set the height of the div it obviously shows correctly but the 3 containers used in the switch is different sizes and one of the containers can maybe have a dynamic size like some long text.

Is there maybe a fix for this with some CSS magic or is it down to some JavaScript to calculate the div height?

I did come across this similar question but it doesn’t solve my problem: Angularjs ng-animate + css transition for sliding effect

来源:https://stackoverflow.com/questions/20115016/ng-switch-with-animation-resizing-looks-buggy

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!