Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(6855)

Unified Diff: chrome/browser/ui/cocoa/location_bar/autocomplete_text_field_editor.mm

Issue 1862623004: mac: Fix size of dragged image from omnibox. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/cocoa/location_bar/autocomplete_text_field_editor.mm
diff --git a/chrome/browser/ui/cocoa/location_bar/autocomplete_text_field_editor.mm b/chrome/browser/ui/cocoa/location_bar/autocomplete_text_field_editor.mm
index 7d8cb9a287dd2eadc1fcc6cd3d5bd4c23225aa93..122ad6a327aaec1572baf7423999306f07b6ffbf 100644
--- a/chrome/browser/ui/cocoa/location_bar/autocomplete_text_field_editor.mm
+++ b/chrome/browser/ui/cocoa/location_bar/autocomplete_text_field_editor.mm
@@ -120,7 +120,9 @@ BOOL ThePasteboardIsTooDamnBig() {
observer->CreatePasteboardItem());
base::scoped_nsobject<NSDraggingItem> dragItem(
[[NSDraggingItem alloc] initWithPasteboardWriter:item]);
- [dragItem setDraggingFrame:[self bounds] contents:image];
+ NSRect draggingFrame =
+ NSMakeRect(0, 0, image.size.width, image.size.height);
+ [dragItem setDraggingFrame:draggingFrame contents:image];
[self beginDraggingSessionWithItems:@[ dragItem.get() ]
event:event
source:self];
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698