Bug 802588 - Use padding when calculating thumbnail size. r=sriram
authorWes Johnston <wjohnston@mozilla.com>
Fri, 19 Oct 2012 17:36:24 -0700
changeset 110838 ea132a82593c5544e8641ae96898555c3bacf59c
parent 110837 d40649836ffaab8d927fdfea1c8f159eece9fda3
child 110839 337cc85e941e5c6373cc324c16db4811dcae4373
push id16777
push userwjohnston@mozilla.com
push dateSat, 20 Oct 2012 00:37:34 +0000
treeherdermozilla-inbound@ea132a82593c [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerssriram
bugs802588
milestone19.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 802588 - Use padding when calculating thumbnail size. r=sriram
mobile/android/base/AboutHomeContent.java.in
--- a/mobile/android/base/AboutHomeContent.java.in
+++ b/mobile/android/base/AboutHomeContent.java.in
@@ -612,17 +612,17 @@ public class AboutHomeContent extends Sc
             return getColumnWidth(getWidth());
         }
 
         public int getColumnWidth(int width) {
             int s = -1;
             if (android.os.Build.VERSION.SDK_INT >= 16)
                 s= super.getColumnWidth();
             else
-                s = width / mNumberOfCols;
+                s = (width - getPaddingLeft() - getPaddingRight()) / mNumberOfCols;
 
             return s;
         }
 
         @Override
         protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {
             int measuredWidth = View.MeasureSpec.getSize(widthMeasureSpec);
             int numRows;