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 7f92c3d commit ecebb69Copy full SHA for ecebb69
plugin/ios/Plugin/Map.swift
@@ -180,10 +180,10 @@ public class Map {
180
181
let height = Double((item as? UIScrollView)?.contentSize.height ?? 0)
182
let width = Double((item as? UIScrollView)?.contentSize.width ?? 0)
183
- let actualHeight = round(height / 2)
+ let actualHeight = floor(height / 2)
184
185
- let isWidthEqual = width == self.config.width
186
- let isHeightEqual = actualHeight == self.config.height
+ let isWidthEqual = width == refWidth
+ let isHeightEqual = actualHeight == refHeight
187
188
if isWidthEqual && isHeightEqual && item.tag < self.targetViewController?.tag ?? Map.MAP_TAG {
189
return item
0 commit comments