Skip to content

Commit

Permalink
Merge pull request #4 from kivy-garden/reinit_layout
Browse files Browse the repository at this point in the history
reinit layout on data change
  • Loading branch information
tito committed May 13, 2015
2 parents c69e7e3 + cad0a28 commit 8061ee0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion recycleview.py
Original file line number Diff line number Diff line change
Expand Up @@ -436,7 +436,8 @@ def on_adapter(self, instance, value):
def on_adapter_data_changed(self, instance):
if self.current_adapter != instance:
return
self.request_layout()
self.ids.layout.clear_widgets()
self.request_layout(full=True)

def on_adapter_view_refresh_layout(self, instance, index, view):
self.current_layout_manager.refresh_view_layout(index, view)
Expand Down

0 comments on commit 8061ee0

Please sign in to comment.