Bug 779322: TabsTray lost its scrolling capabilities. [r=mbrubeck]

--HG--
extra : rebase_source : 5574cd1dea25d3121fe50be5ef8407030b7a1897
This commit is contained in:
Sriram Ramasubramanian 2012-08-03 12:11:15 -07:00
parent b50d7f6a63
commit 021747592d

View File

@ -109,7 +109,7 @@ public class TabsPanel extends LinearLayout {
@Override
protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {
if (!GeckoApp.mAppContext.hasTabsSideBar()) {
int heightSpec = MeasureSpec.makeMeasureSpec(mContext.getResources().getDisplayMetrics().heightPixels, MeasureSpec.EXACTLY);
int heightSpec = MeasureSpec.makeMeasureSpec((int) (0.5 * mContext.getResources().getDisplayMetrics().heightPixels), MeasureSpec.EXACTLY);
super.onMeasure(widthMeasureSpec, heightSpec);
} else {
super.onMeasure(widthMeasureSpec, heightMeasureSpec);