From ff12d0be174c9e06c8299c9280c038e77d244483 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Tue, 7 Feb 2017 23:35:55 +0530 Subject: [PATCH] Fix top bar on sort panel --- src/pyj/book_list/views.pyj | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/pyj/book_list/views.pyj b/src/pyj/book_list/views.pyj index 41c8b902b9..53284eed37 100644 --- a/src/pyj/book_list/views.pyj +++ b/src/pyj/book_list/views.pyj @@ -230,7 +230,9 @@ def create_sort_panel(container_id): else: action = change_sort.bind(None, field, None) items.push(create_item(name, subtitle=subtitle, icon=icon_name, action=action)) - create_item_list(document.getElementById(container_id), items, _('Change how the list of books is sorted')) + container = document.getElementById(container_id) + container.appendChild(E.div()) + create_item_list(container.lastChild, items, _('Change how the list of books is sorted')) # }}}