X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=scripts%2Ffocus.py;h=adba37258fb89ed93a885e010b9165c9abad065e;hb=3409b046a043d8ffabf2e9c33ea037c2e5be15e4;hp=5ae40cf273e483aa7cb71295a0d7d8beef15e398;hpb=f4c91c54b5117004603b81f1cdc0967f186cfaab;p=chaz%2Fopenbox diff --git a/scripts/focus.py b/scripts/focus.py index 5ae40cf2..adba3725 100644 --- a/scripts/focus.py +++ b/scripts/focus.py @@ -203,12 +203,12 @@ def _create_popup_list(data): t = t[:24] + "..." + t[-24:] titles.append(t) _list_windows.append(c) - l = font.measureString(t) + 10 # add margin + l = font.measureString(t) if l > longest: longest = l if len(titles) > 1: for t in titles: w = otk.FocusLabel(_list_widget) - w.resize(longest, height) + w.fitSize(longest, height) w.setText(t) w.unfocus() _list_labels.append(w)