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

smartgrid #782

Open
davidduwei opened this issue Nov 3, 2015 · 5 comments
Open

smartgrid #782

davidduwei opened this issue Nov 3, 2015 · 5 comments

Comments

@davidduwei
Copy link

提个建议吧,perfectColumns方法中宽度计算应该考虑到toggle情况吧,另百分比个人觉得还是不要换算成px了吧。不然对于原本隐藏的smartgrid是无法获取avalon(options.container.parentNode).width的。

@yuhaoju
Copy link
Contributor

yuhaoju commented Nov 9, 2015

初始化之后会有别的方法计算toggle的情况然后调整宽度,第二个没太看懂。。。原本隐藏的smartgrid是什么意思,通过什么方式隐藏的?

@davidduwei
Copy link
Author

第一个我再试下,第二个当然也可以通过其他方式解决,简单点来说就是有2个tab选项卡 每个选项卡里有一个smartgrid.页面进入。我对2个smartgrid.都直接绑定了数据render,当切换到第二个就会错乱,因为拿不到隐藏父容器的宽度。当然可以在tab切换的时候在去render.

@yuhaoju
Copy link
Contributor

yuhaoju commented Nov 9, 2015

嗯第一个我大概两星期前改过一版,所有没有手动设置宽度的列都会自动调整宽度,并且考虑toggle

@davidduwei
Copy link
Author

刚试了下 avalon.smartgrid.ex1.html。
将第一列isLock改成false.toggle设置为false总宽度会加上这一列

@yuhaoju
Copy link
Contributor

yuhaoju commented Nov 26, 2015

已经修复了

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