summaryrefslogtreecommitdiffstats
path: root/chrome
diff options
context:
space:
mode:
authorshess@chromium.org <shess@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-02-05 23:40:07 +0000
committershess@chromium.org <shess@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-02-05 23:40:07 +0000
commit50a376f0d18e4f76a3ab04c46c66df965b6b2192 (patch)
treeb59d77a331371d9f990d835e37343648d7d646fa /chrome
parentf4602ab4a558bbeefa4cfc027b441e20e39998a6 (diff)
downloadchromium_src-50a376f0d18e4f76a3ab04c46c66df965b6b2192.zip
chromium_src-50a376f0d18e4f76a3ab04c46c66df965b6b2192.tar.gz
chromium_src-50a376f0d18e4f76a3ab04c46c66df965b6b2192.tar.bz2
[Mac] Don't let omnibox popup text tighten while resizing.
Sets the tightening factor to 0.0 so that the popup text doesn't tighten then rebound after being elided. BUG=24296 TEST=Get the omnibox popup up, resize the window smaller, all the left-hand-side text which stays should be rendered in a stable position (right-hand-side text may shift as LHS text is elided, but the spacing between characters should stay the same). Review URL: http://codereview.chromium.org/577029 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@38280 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome')
-rw-r--r--chrome/browser/autocomplete/autocomplete_popup_view_mac.mm1
1 files changed, 1 insertions, 0 deletions
diff --git a/chrome/browser/autocomplete/autocomplete_popup_view_mac.mm b/chrome/browser/autocomplete/autocomplete_popup_view_mac.mm
index 38b7547..b72eef3 100644
--- a/chrome/browser/autocomplete/autocomplete_popup_view_mac.mm
+++ b/chrome/browser/autocomplete/autocomplete_popup_view_mac.mm
@@ -254,6 +254,7 @@ NSAttributedString* AutocompletePopupViewMac::MatchText(
NSMutableParagraphStyle* style =
[[[NSMutableParagraphStyle alloc] init] autorelease];
[style setLineBreakMode:NSLineBreakByTruncatingTail];
+ [style setTighteningFactorForTruncation:0.0];
[as addAttribute:NSParagraphStyleAttributeName value:style
range:NSMakeRange(0, [as length])];