| Index: chrome/browser/ui/cocoa/download/download_item_cell.mm
|
| diff --git a/chrome/browser/ui/cocoa/download/download_item_cell.mm b/chrome/browser/ui/cocoa/download/download_item_cell.mm
|
| index a16eba9e1f389a71e1dcd9b20539735a635ebd97..a317c1d4986b99639ac0a6fde8c668b0bae7519b 100644
|
| --- a/chrome/browser/ui/cocoa/download/download_item_cell.mm
|
| +++ b/chrome/browser/ui/cocoa/download/download_item_cell.mm
|
| @@ -390,7 +390,7 @@ using content::DownloadItem;
|
| if (![self secondaryTitle] || statusAlpha_ <= 0)
|
| return;
|
|
|
| - CGFloat textWidth = innerFrame.size.width -
|
| + CGFloat textWidth = NSWidth(innerFrame) -
|
| (kTextPosLeft + kTextPaddingRight + kDropdownAreaWidth);
|
| NSString* secondaryText = [self elideStatus:textWidth];
|
| NSColor* secondaryColor =
|
| @@ -492,7 +492,7 @@ using content::DownloadItem;
|
|
|
| - (void)drawInteriorWithFrame:(NSRect)cellFrame inView:(NSView*)controlView {
|
| // Draw title
|
| - CGFloat textWidth = cellFrame.size.width -
|
| + CGFloat textWidth = NSWidth(cellFrame) -
|
| (kTextPosLeft + kTextPaddingRight + kDropdownAreaWidth);
|
| [self setTitle:[self elideTitle:textWidth]];
|
|
|
|
|