We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c8c70e7 commit 4299db6Copy full SHA for 4299db6
media-placeholders/src/main/java/org/wordpress/aztec/placeholders/AztecPlaceholderSpan.kt
@@ -2,6 +2,7 @@ package org.wordpress.aztec.placeholders
2
3
import android.content.Context
4
import android.graphics.drawable.Drawable
5
+import kotlinx.coroutines.runBlocking
6
import org.wordpress.aztec.AztecAttributes
7
import org.wordpress.aztec.AztecText
8
import org.wordpress.aztec.spans.AztecMediaSpan
@@ -23,6 +24,6 @@ class AztecPlaceholderSpan(
23
24
}
25
26
override fun getMaxWidth(editorWidth: Int): Int {
- return adapter.calculateWidth(attributes, editorWidth)
27
+ return runBlocking { adapter.calculateWidth(attributes, editorWidth) }
28
29
0 commit comments