From 50a376f0d18e4f76a3ab04c46c66df965b6b2192 Mon Sep 17 00:00:00 2001 From: "shess@chromium.org" Date: Fri, 5 Feb 2010 23:40:07 +0000 Subject: [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 --- chrome/browser/autocomplete/autocomplete_popup_view_mac.mm | 1 + 1 file changed, 1 insertion(+) (limited to 'chrome/browser') 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])]; -- cgit v1.1