зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
d254720dd6
Коммит
dbc5277ba8
|
@ -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;
|
||||
|
|
Загрузка…
Ссылка в новой задаче