You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Notice that the first item is added on the right and its bigger than the max _width defined. While the last item that is added at the bottom is also beyond the height limit.
I will check auto positioning. Also I will add a method which will help to check if a widget could be added with respect to vertical constraint. I don't think that height property should restrict from adding.
If height is not explicitly defined then the height property should not be restrictive. But if someone has defined the height then the add_widget should definitely restrict or at least warn the user that the new widget is being added beyond the set width / height restrictions.
I've fixed the bug with auto-positioning. I've also added a new method will_it_fit. You have to check by yourself before add a widget. Please see the README.md.
Activity
troolee commentedon Dec 4, 2014
Can you give a sample?
ashishpadave commentedon Dec 4, 2014
I have used the demo html and added the following script and a button.
If i keep clicking the add_widget button, the widgets continue to get added beyond the max number of rows.
ashishpadave commentedon Dec 4, 2014
http://screencast.com/t/IGZ9txKZYh
Notice that the first item is added on the right and its bigger than the max _width defined. While the last item that is added at the bottom is also beyond the height limit.
troolee commentedon Dec 4, 2014
Thank you for feedback.
I will check auto positioning. Also I will add a method which will help to check if a widget could be added with respect to vertical constraint. I don't think that
heightproperty should restrict from adding.ashishpadave commentedon Dec 4, 2014
If height is not explicitly defined then the height property should not be restrictive. But if someone has defined the height then the add_widget should definitely restrict or at least warn the user that the new widget is being added beyond the set width / height restrictions.
troolee commentedon Dec 6, 2014
I've fixed the bug with auto-positioning. I've also added a new method
will_it_fit. You have to check by yourself before add a widget. Please see the README.md.ashishpadave commentedon Dec 9, 2014
Thank you :)