diff options
author | Tobrun <tobrun@mapbox.com> | 2017-11-29 12:21:54 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-11-29 12:21:54 +0100 |
commit | 8cebab09ba76f56c58ad354e65440087136c7d3e (patch) | |
tree | 7b5653756c27d845fd966a20d05e93993c42355b /platform/android | |
parent | a1f207b090a1ddb36c8103c9af621b119286f97e (diff) | |
download | qtlocation-mapboxgl-8cebab09ba76f56c58ad354e65440087136c7d3e.tar.gz |
[android] - attribtuion anchor point calculation fix for short text with full logo on a MapSnapshot (#10558)
Diffstat (limited to 'platform/android')
-rw-r--r-- | platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/attribution/AttributionMeasure.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/attribution/AttributionMeasure.java b/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/attribution/AttributionMeasure.java index 667060168b..c2408ca718 100644 --- a/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/attribution/AttributionMeasure.java +++ b/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/attribution/AttributionMeasure.java @@ -62,7 +62,7 @@ public class AttributionMeasure { float width = measure.getLogoContainerWidth() + measure.getTextViewShortContainerWidth(); boolean fitBounds = width <= measure.getMaxSizeShort(); if (fitBounds) { - PointF anchor = calculateAnchor(measure.snapshot, measure.textView, measure.margin); + PointF anchor = calculateAnchor(measure.snapshot, measure.textViewShort, measure.margin); return new AttributionLayout(measure.logo, anchor, true); } return null; |