From a6e4bf9cc53c8b1d6ff56aea9589a16daf74a2ae Mon Sep 17 00:00:00 2001 From: Nick Hall Date: Thu, 26 Dec 2013 17:31:02 +0000 Subject: [PATCH] 7333: Reduce number of columns in LDS temple selector --- gramps/gui/widgets/monitoredwidgets.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/gramps/gui/widgets/monitoredwidgets.py b/gramps/gui/widgets/monitoredwidgets.py index 4bec1a80a..56e60e63a 100644 --- a/gramps/gui/widgets/monitoredwidgets.py +++ b/gramps/gui/widgets/monitoredwidgets.py @@ -567,12 +567,11 @@ class MonitoredStrMenu(object): self.obj = obj self.model = Gtk.ListStore(GObject.TYPE_STRING) + # Make sure that the menu is visible on small screen devices. + # Some LDS temples were not visible on a 4 or 5 column layout. + # See bug #7333 if len(mapping) > 20: self.obj.set_wrap_width(3) - if len(mapping) > 40: - self.obj.set_wrap_width(4) - if len(mapping) > 100: # currently, there are 153 entries in lds.xml - self.obj.set_wrap_width(5) self.model.append(row=['']) index = 0