[android] - decouple map padding from overlain views

This commit is contained in:
Tobrun
2018-02-20 15:22:44 +01:00
committed by Tobrun
parent 9a30e252b5
commit e5810536bc

View File

@@ -950,12 +950,7 @@ public final class UiSettings {
initMargins[3] = bottom;
// convert initial margins with padding
int[] contentPadding = projection.getContentPadding();
FrameLayout.LayoutParams layoutParams = (FrameLayout.LayoutParams) view.getLayoutParams();
left += contentPadding[0];
top += contentPadding[1];
right += contentPadding[2];
bottom += contentPadding[3];
layoutParams.setMargins(left, top, right, bottom);
// support RTL