mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1014996 - A full-screen tab panel for managing normal and private tabs (r=lucasr)
This commit is contained in:
parent
70b21bd94b
commit
731b081620
@ -282,13 +282,18 @@ public class TabsPanel extends LinearLayout
|
||||
private static int getTabContainerHeight(TabsLayoutContainer tabsContainer) {
|
||||
Resources resources = tabsContainer.getContext().getResources();
|
||||
|
||||
int screenHeight = resources.getDisplayMetrics().heightPixels;
|
||||
|
||||
if(NewTabletUI.isEnabled(tabsContainer.getContext())){
|
||||
return screenHeight;
|
||||
}
|
||||
|
||||
PanelView panelView = tabsContainer.getCurrentPanelView();
|
||||
if (panelView != null && !panelView.shouldExpand()) {
|
||||
return resources.getDimensionPixelSize(R.dimen.tabs_layout_horizontal_height);
|
||||
}
|
||||
|
||||
int actionBarHeight = resources.getDimensionPixelSize(R.dimen.browser_toolbar_height);
|
||||
int screenHeight = resources.getDisplayMetrics().heightPixels;
|
||||
|
||||
Rect windowRect = new Rect();
|
||||
tabsContainer.getWindowVisibleDisplayFrame(windowRect);
|
||||
|
Loading…
Reference in New Issue
Block a user