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 ac36a4f commit 9df5b3aCopy full SHA for 9df5b3a
plugin/ios/Plugin/Map.swift
@@ -180,10 +180,11 @@ 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 actualHeightFloor = floor(height / 2)
184
+ let actualHeightCeil = ceil(height / 2)
185
- let isWidthEqual = width == self.config.width
186
- let isHeightEqual = actualHeight == self.config.height
+ let isWidthEqual = width == refWidth
187
+ let isHeightEqual = actualHeightFloor == refHeight || actualHeightCeil == refHeight
188
189
if isWidthEqual && isHeightEqual && item.tag < self.targetViewController?.tag ?? Map.MAP_TAG {
190
return item
0 commit comments