[RHEL 7.2 - PATCH 1/5] Wrap device labels earlier (#1212615)

Robert Marshall rmarshall at redhat.com
Mon Jul 6 15:27:00 UTC 2015


From: David Shea <dshea at redhat.com>

Cherry pick from David Shea's work on master for bz#1212586 in
commit fc8c9a7676d1c3ffff9c70501b8cbc7713e31396.

A minimum width of 35 in the device label causes problems with smaller
resolutions (800x600). Remove width_chars so that the label wraps
earlier than the max width if it needs to, and change the wrap mode from
word to word-char to ensure that device names with extra long words
get wrapped ugly instead of causing layout issues.

Resolves: rhbz#1212615
---
 pyanaconda/ui/gui/spokes/custom.glade | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pyanaconda/ui/gui/spokes/custom.glade b/pyanaconda/ui/gui/spokes/custom.glade
index 8407dda..14371f3 100644
--- a/pyanaconda/ui/gui/spokes/custom.glade
+++ b/pyanaconda/ui/gui/spokes/custom.glade
@@ -524,8 +524,8 @@
                                                 <property name="valign">start</property>
                                                 <property name="xalign">0</property>
                                                 <property name="wrap">True</property>
-                                                <property name="width_chars">35</property>
                                                 <property name="angle">0.01</property>
+                                                <property name="wrap_mode">word-char</property>
                                                 <property name="max_width_chars">35</property>
                                               </object>
                                               <packing>
-- 
2.4.3


More information about the anaconda-patches mailing list