Index: ui/views/controls/textfield/textfield.cc |
diff --git a/ui/views/controls/textfield/textfield.cc b/ui/views/controls/textfield/textfield.cc |
index 8414521dd258ccc1ec46ef855a242c5fc03b3fa8..04a89099d69e5ddb6b7a002054815800b2270deb 100644 |
--- a/ui/views/controls/textfield/textfield.cc |
+++ b/ui/views/controls/textfield/textfield.cc |
@@ -1070,7 +1070,7 @@ void Textfield::WriteDragDataForView(View* sender, |
gfx::Size size(label.GetPreferredSize()); |
gfx::NativeView native_view = GetWidget()->GetNativeView(); |
display::Display display = |
- display::Screen::GetScreen()->GetDisplayNearestWindow(native_view); |
+ display::Screen::GetScreen()->GetDisplayNearestView(native_view); |
size.SetToMin(gfx::Size(display.size().width(), height())); |
label.SetBoundsRect(gfx::Rect(size)); |
label.SetEnabledColor(GetTextColor()); |