Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,13 @@ class RNMBXMarkerView(context: Context?, private val mManager: RNMBXMarkerViewMa
mMapView?.offscreenAnnotationViewContainer?.addView(view)
mMapView?.offscreenAnnotationViewContainer?.removeView(view)
}


if (view.width == 0 || view.height == 0) {
// Fixes https://github.com/rnmapbox/maps/issues/4206
// Wait for the next layout via onLayoutChange
return
}

Comment on lines +122 to +128
Comment on lines +122 to +128
val options = getOptions()

val content = view as? RNMBXMarkerViewContent;
Expand Down Expand Up @@ -209,4 +215,4 @@ class RNMBXMarkerView(context: Context?, private val mManager: RNMBXMarkerViewMa
}

// endregion
}
}
Loading