Small improvement

This commit is contained in:
M66B
2019-05-03 17:39:32 +02:00
parent 3e3bfb142d
commit 50434e744f
3 changed files with 3 additions and 4 deletions

View File

@@ -2881,8 +2881,7 @@ public class FragmentCompose extends FragmentBase {
lld.setLevel(2); // image
float scale = 1.0f;
float width = getContext().getResources().getDisplayMetrics().widthPixels -
Helper.dp2pixels(getContext(), 12); // margins;
float width = etBody.getWidth();
if (image.getIntrinsicWidth() > width)
scale = width / image.getIntrinsicWidth();