summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsky@google.com <sky@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-10-30 00:12:31 +0000
committersky@google.com <sky@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-10-30 00:12:31 +0000
commite59ebde381803087847bba3ce5fdada57ea365c1 (patch)
treeb95f5dd8346a43a51fc581b49aa3f9abd2b62a63
parent6749c68237fcc188dac3520527d5d5210f6147fc (diff)
downloadchromium_src-e59ebde381803087847bba3ce5fdada57ea365c1.zip
chromium_src-e59ebde381803087847bba3ce5fdada57ea365c1.tar.gz
chromium_src-e59ebde381803087847bba3ce5fdada57ea365c1.tar.bz2
Fixes resizing of single split view for RTL case.
BUG=674 TEST=none Review URL: http://codereview.chromium.org/8210 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@4193 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r--chrome/views/single_split_view.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/chrome/views/single_split_view.cc b/chrome/views/single_split_view.cc
index 613d3e22..5cbcbb3 100644
--- a/chrome/views/single_split_view.cc
+++ b/chrome/views/single_split_view.cc
@@ -109,9 +109,8 @@ bool SingleSplitView::IsPointInDivider(int x) {
if (GetChildViewCount() < 2)
return false;
- View* leading = GetChildViewAt(0);
int divider_relative_x =
- x - MirroredXCoordinateInsideView(leading->width());
+ x - GetChildViewAt(UILayoutIsRightToLeft() ? 1 : 0)->width();
return (divider_relative_x >= 0 && divider_relative_x < kDividerSize);
}