Commit 2bfbf650 authored by Qiu Xiang's avatar Qiu Xiang

Fix android InfoWindow layout bug

parent fa6a39f8
......@@ -11,6 +11,10 @@ class AMapOverlay(context: Context) : ReactViewGroup(context) {
}
fun update() {
val layoutParams = this.layoutParams
if (layoutParams == null || layoutParams.width != this.width || layoutParams.height != this.height) {
this.layoutParams = LayoutParams(this.width, this.height)
}
updateHandler?.invoke()
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment