Skip to content

Commit cf05fc8

Browse files
committed
Remove unnecessary padding from the editorWidth calculation
1 parent 4e326d4 commit cf05fc8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

media-placeholders/src/main/java/org/wordpress/aztec/placeholders/PlaceholderManager.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,7 @@ class PlaceholderManager(
327327

328328
private suspend fun updateDrawableBounds(adapter: PlaceholderAdapter, attrs: AztecAttributes, drawable: Drawable?) {
329329
val editorWidth = if (aztecText.width > 0) {
330-
aztecText.width - aztecText.paddingStart - aztecText.paddingEnd - EDITOR_INNER_PADDING
330+
aztecText.width - aztecText.paddingStart - aztecText.paddingEnd
331331
} else aztecText.maxImagesWidth
332332
if (drawable?.bounds?.right != editorWidth) {
333333
drawable?.setBounds(0, 0, adapter.calculateWidth(attrs, editorWidth), adapter.calculateHeight(attrs, editorWidth))

0 commit comments

Comments
 (0)