Make sure that the slidecontroller toolbar layout is correctly adjusted to fit its size. Fixes bug 1387304

Fixes: https://launchpad.net/bugs/1387304
This commit is contained in:
Tomas Groth 2014-11-13 11:26:44 +01:00
parent b7e3a33c4a
commit 28599c8f24

View File

@ -691,7 +691,8 @@ class SlideController(DisplayController, RegistryProperties):
self.mediabar.show() self.mediabar.show()
self.previous_item.setVisible(not item.is_media()) self.previous_item.setVisible(not item.is_media())
self.next_item.setVisible(not item.is_media()) self.next_item.setVisible(not item.is_media())
self.set_blank_menu() # The layout of the toolbar is size dependent, so make sure it fits
self.on_controller_size_changed(self.controller.width())
# Work-around for OS X, hide and then show the toolbar # Work-around for OS X, hide and then show the toolbar
# See bug #791050 # See bug #791050
self.toolbar.show() self.toolbar.show()