Bug 1076692 - Account for statusbar height when tint is enabled (r=mfinkle)

This commit is contained in:
Lucas Rocha 2014-10-09 20:03:41 +01:00
parent c4c950c405
commit 46225134a4

View File

@ -2376,6 +2376,11 @@ public class BrowserApp extends GeckoApp
view.getHitRect(mTempRect);
mTempRect.offset(-view.getScrollX(), -view.getScrollY());
if (mTintManager != null) {
SystemBarTintManager.SystemBarConfig config = mTintManager.getConfig();
mTempRect.offset(0, -config.getPixelInsetTop(false));
}
int[] viewCoords = new int[2];
view.getLocationOnScreen(viewCoords);