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

Unified Diff: chrome/browser/views/extensions/extension_shelf.cc

Issue 204015: Drag and drop for extension in RTL wasn't working properly.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 3 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/views/extensions/extension_shelf.cc
===================================================================
--- chrome/browser/views/extensions/extension_shelf.cc (revision 26125)
+++ chrome/browser/views/extensions/extension_shelf.cc (working copy)
@@ -981,7 +981,8 @@
for (int i = 0; i < count; ++i) {
Toolstrip* toolstrip = ToolstripAtIndex(i);
View* view = toolstrip->GetShelfView();
- if (x > (view->x() + view->width() + kToolstripPadding))
+ int x_mirrored = view->GetRootView()->MirroredXCoordinateInsideView(x);
+ if (x_mirrored > view->x() + view->width() + kToolstripPadding)
continue;
return toolstrip;
}
« 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