зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1063765 - Part 2: Adjust top margin for static content on landscape phones. r=antlam
Per discussion with antlam, we shrink the top margin on landscape phones in the hopes of fitting the content in the window. On portrait phones and all tablets, we maintain a larger top margin.
This commit is contained in:
Родитель
405e3958e7
Коммит
2f15da9e36
|
@ -0,0 +1,11 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- This Source Code Form is subject to the terms of the Mozilla Public
|
||||
- License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
- file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
|
||||
|
||||
<resources>
|
||||
|
||||
<!-- Remote Tabs static view top padding. Less in landscape on phones. -->
|
||||
<dimen name="home_remote_tabs_top_padding">16dp</dimen>
|
||||
|
||||
</resources>
|
|
@ -0,0 +1,11 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- This Source Code Form is subject to the terms of the Mozilla Public
|
||||
- License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
- file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
|
||||
|
||||
<resources>
|
||||
|
||||
<!-- Remote Tabs static view top padding. Less in landscape on phones. -->
|
||||
<dimen name="home_remote_tabs_top_padding">48dp</dimen>
|
||||
|
||||
</resources>
|
|
@ -35,6 +35,9 @@
|
|||
<!-- Page Row height -->
|
||||
<dimen name="page_row_height">64dp</dimen>
|
||||
|
||||
<!-- Remote Tabs static view top padding. Less in landscape on phones. -->
|
||||
<dimen name="home_remote_tabs_top_padding">48dp</dimen>
|
||||
|
||||
<!-- Search Engine Row height -->
|
||||
<dimen name="search_row_height">48dp</dimen>
|
||||
|
||||
|
|
|
@ -820,7 +820,7 @@
|
|||
<style name="RemoteTabsPanelFrame">
|
||||
<item name="android:paddingLeft">32dp</item>
|
||||
<item name="android:paddingRight">32dp</item>
|
||||
<item name="android:paddingTop">16dp</item>
|
||||
<item name="android:paddingTop">@dimen/home_remote_tabs_top_padding</item>
|
||||
<item name="android:orientation">vertical</item>
|
||||
<item name="android:layout_gravity">center_horizontal</item>
|
||||
<item name="android:layout_width">wrap_content</item>
|
||||
|
|
Загрузка…
Ссылка в новой задаче