Index: chrome/browser/ui/views/tabs/dragged_tab_controller.cc |
diff --git a/chrome/browser/ui/views/tabs/dragged_tab_controller.cc b/chrome/browser/ui/views/tabs/dragged_tab_controller.cc |
index d7e350a2777877f9527117ab44022791d49fbd53..e09065e7799d3312ffc4e26bf542915f878ef77e 100644 |
--- a/chrome/browser/ui/views/tabs/dragged_tab_controller.cc |
+++ b/chrome/browser/ui/views/tabs/dragged_tab_controller.cc |
@@ -1021,12 +1021,12 @@ gfx::Point DraggedTabController::GetAttachedTabDragPoint( |
const gfx::Size& tab_size = attached_tab_->bounds().size(); |
if (attached_tabstrip_->type() == BaseTabStrip::HORIZONTAL_TAB_STRIP) { |
- int max_x = attached_tabstrip_->bounds().right() - tab_size.width(); |
+ int max_x = attached_tabstrip_->width() - tab_size.width(); |
x = std::min(std::max(x, 0), max_x); |
y = 0; |
} else { |
x = SideTabStrip::kTabStripInset; |
- int max_y = attached_tabstrip_->bounds().bottom() - tab_size.height(); |
+ int max_y = attached_tabstrip_->height() - tab_size.height(); |
y = std::min(std::max(y, SideTabStrip::kTabStripInset), max_y); |
} |
return gfx::Point(x, y); |