Bug 1100317 - Gridview doesnt show the last row completely when more tabs open than will fit on a single screen (r=lucasr)

This commit is contained in:
Martyn Haigh 2014-11-21 15:14:57 +00:00
Родитель d254720dd6
Коммит dbc5277ba8
1 изменённых файлов: 2 добавлений и 3 удалений

Просмотреть файл

@ -241,9 +241,10 @@ public class TabsPanel extends LinearLayout
Resources resources = tabsContainer.getContext().getResources();
int screenHeight = resources.getDisplayMetrics().heightPixels;
int actionBarHeight = resources.getDimensionPixelSize(R.dimen.browser_toolbar_height);
if(NewTabletUI.isEnabled(tabsContainer.getContext())){
return screenHeight;
return screenHeight - actionBarHeight;
}
PanelView panelView = tabsContainer.getCurrentPanelView();
@ -251,8 +252,6 @@ public class TabsPanel extends LinearLayout
return resources.getDimensionPixelSize(R.dimen.tabs_layout_horizontal_height);
}
int actionBarHeight = resources.getDimensionPixelSize(R.dimen.browser_toolbar_height);
Rect windowRect = new Rect();
tabsContainer.getWindowVisibleDisplayFrame(windowRect);
int windowHeight = windowRect.bottom - windowRect.top;