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.
2 parents c07dca3 + 116e8a3 commit ca4881eCopy full SHA for ca4881e
plugin/ios/Plugin/Map.swift
@@ -217,10 +217,11 @@ public class Map {
217
218
let height = Double((item as? UIScrollView)?.contentSize.height ?? 0)
219
let width = Double((item as? UIScrollView)?.contentSize.width ?? 0)
220
- let actualHeight = round(height / 2)
+ let actualHeightFloor = floor(height / 2)
221
+ let actualHeightCeil = ceil(height / 2)
222
- let isWidthEqual = width == self.config.width
223
- let isHeightEqual = actualHeight == self.config.height
+ let isWidthEqual = width == refWidth
224
+ let isHeightEqual = actualHeightFloor == refHeight || actualHeightCeil == refHeight
225
226
if isWidthEqual && isHeightEqual && item.tag < self.targetViewController?.tag ?? Map.MAP_TAG {
227
return item
0 commit comments