From 37cefcaf6d77cb556d661e6555e246ba11ee5c9a Mon Sep 17 00:00:00 2001 From: Grishka Date: Sun, 15 May 2022 21:13:36 +0300 Subject: [PATCH] Fix #164 --- .../android/ui/views/ImageAttachmentFrameLayout.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mastodon/src/main/java/org/joinmastodon/android/ui/views/ImageAttachmentFrameLayout.java b/mastodon/src/main/java/org/joinmastodon/android/ui/views/ImageAttachmentFrameLayout.java index dff3aa24..0bfcbdb1 100644 --- a/mastodon/src/main/java/org/joinmastodon/android/ui/views/ImageAttachmentFrameLayout.java +++ b/mastodon/src/main/java/org/joinmastodon/android/ui/views/ImageAttachmentFrameLayout.java @@ -36,7 +36,7 @@ public class ImageAttachmentFrameLayout extends FrameLayout{ super.onMeasure(widthMeasureSpec, heightMeasureSpec); return; } - int w=Math.min(((View)getParent()).getMeasuredWidth()-horizontalInset, V.dp(MAX_WIDTH)); + int w=Math.min(((View)getParent()).getMeasuredWidth(), V.dp(MAX_WIDTH))-horizontalInset; int actualHeight=Math.round(tile.height/1000f*w)+V.dp(1)*(tile.rowSpan-1); int actualWidth=Math.round(tile.width/1000f*w); if(tile.startCol+tile.colSpan