summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortobrun <tobrun.van.nuland@gmail.com>2017-11-24 12:52:02 +0100
committertobrun <tobrun.van.nuland@gmail.com>2017-11-24 12:52:02 +0100
commit198a8da796eade2762813b7909dbd698ac5e383e (patch)
treecf3c79b4796959fbd85f72d1d39df90c63e14183
parent7c8fbc82323f6a7cb8462c6843cf6d43b0eaf46a (diff)
downloadqtlocation-mapboxgl-upstream/tvn-snapshot-anchor-fix.tar.gz
[android] - attribtuion anchor point calculation fix for short text with full logo on a MapSnapshotupstream/tvn-snapshot-anchor-fix
-rw-r--r--platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/attribution/AttributionMeasure.java2
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;