mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1148197 - Move share overlay margins to child to properly align. r=liuche
When it's on the parent of the outermost container with layout_width="match_parent", the margin adds to the parent's size (i.e. the screen width). Adding the margin to the child ensures the width is reduced and content centered.
This commit is contained in:
parent
9c465ac034
commit
6f584fe969
@ -9,8 +9,6 @@
|
||||
android:id="@+id/sharedialog"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_marginLeft="15dp"
|
||||
android:layout_marginRight="15dp"
|
||||
android:clipChildren="false"
|
||||
android:clipToPadding="false">
|
||||
|
||||
@ -18,6 +16,8 @@
|
||||
android:layout_width="300dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="bottom|center"
|
||||
android:layout_marginLeft="15dp"
|
||||
android:layout_marginRight="15dp"
|
||||
android:paddingTop="8dp"
|
||||
android:orientation="vertical">
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user