Bug 784361 - Make doorhanger and site identity popups have the same width. r=lucasr

This commit is contained in:
Margaret Leibovic 2012-08-26 21:12:00 -07:00
parent 86bfd9729f
commit bce3d5060d
4 changed files with 5 additions and 7 deletions

View File

@ -154,7 +154,7 @@ public class SiteIdentityPopup extends PopupWindow {
int offset = 0;
if (GeckoApp.mAppContext.isTablet()) {
int popupWidth = mResources.getDimensionPixelSize(R.dimen.site_identity_popup_width);
int popupWidth = mResources.getDimensionPixelSize(R.dimen.popup_width);
offset = 0 - popupWidth + arrowWidth*3/2 + v.getWidth()/2;
}

View File

@ -4,15 +4,13 @@
- file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="wrap_content"
android:layout_width="fill_parent"
android:layout_height="wrap_content">
<ScrollView android:layout_width="wrap_content"
<ScrollView android:layout_width="@dimen/popup_width"
android:layout_height="wrap_content"
android:layout_marginTop="24dip"
android:layout_alignParentTop="true"
android:minWidth="200dip"
android:maxWidth="600dip"
android:background="@drawable/doorhanger_popup_bg">
<LinearLayout android:id="@+id/doorhanger_container"

View File

@ -7,7 +7,7 @@
android:layout_width="fill_parent"
android:layout_height="wrap_content">
<RelativeLayout android:layout_width="@dimen/site_identity_popup_width"
<RelativeLayout android:layout_width="@dimen/popup_width"
android:layout_height="wrap_content"
android:layout_marginTop="15dip"
android:layout_alignParentTop="true"

View File

@ -29,7 +29,7 @@
<dimen name="prompt_service_top_bottom_text_with_icon_padding">8dp</dimen>
<dimen name="remote_tab_child_row_height">54dp</dimen>
<dimen name="remote_tab_group_row_height">26dp</dimen>
<dimen name="site_identity_popup_width">400dp</dimen>
<dimen name="popup_width">400dp</dimen>
<dimen name="tab_thumbnail_height">78dp</dimen>
<dimen name="tab_thumbnail_width">136dp</dimen>
<dimen name="tabs_list_divider_height">2dp</dimen>