This commit is contained in:
Kovid Goyal 2016-06-16 10:27:16 +05:30
parent 3e93f8f51e
commit c9a8bd9884

View File

@ -106,4 +106,5 @@ class CompletionPopup:
cs.top = 'auto' if upwards else y + 'px' cs.top = 'auto' if upwards else y + 'px'
cs.bottom = y + 'px' if upwards else 'auto' cs.bottom = y + 'px' if upwards else 'auto'
cs.width = width + 'px' cs.width = width + 'px'
cs.maxHeight = ((y if upwards else window.innerHeight - y) - 10) + 'px'
show_popup(self.container_id, *self.associated_widget_ids) show_popup(self.container_id, *self.associated_widget_ids)