From 1baed0e0ecb39ba296ff7f8cb22e8d7d93106168 Mon Sep 17 00:00:00 2001 From: Lucas Rocha Date: Tue, 28 May 2013 16:43:59 +0100 Subject: [PATCH] Bug 867608 - Reuse width value on BrowserToolbar's updateForwardButton() (r=mfinkle) --- mobile/android/base/BrowserToolbar.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mobile/android/base/BrowserToolbar.java b/mobile/android/base/BrowserToolbar.java index be39922e02b..18e2e2d7e5e 100644 --- a/mobile/android/base/BrowserToolbar.java +++ b/mobile/android/base/BrowserToolbar.java @@ -1056,7 +1056,7 @@ public class BrowserToolbar implements Tabs.OnTabsChangedListener, ViewGroup.MarginLayoutParams layoutParams = (ViewGroup.MarginLayoutParams)mForward.getLayoutParams(); - layoutParams.leftMargin = mDefaultForwardMargin + (mForward.isEnabled() ? mForward.getWidth() / 2 : 0); + layoutParams.leftMargin = mDefaultForwardMargin + (mForward.isEnabled() ? width : 0); ViewHelper.setTranslationX(mForward, 0); mUrlDisplayContainer.requestLayout();