ol 9.2.5-dev.1721656720261 → 9.2.5-dev.1721656835853

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/Map.js CHANGED
@@ -1706,7 +1706,7 @@ class Map extends BaseObject {
1706
1706
  parseFloat(computedStyle['paddingBottom']) -
1707
1707
  parseFloat(computedStyle['borderBottomWidth']);
1708
1708
  if (!isNaN(width) && !isNaN(height)) {
1709
- size = [width, height];
1709
+ size = [Math.max(0, width), Math.max(0, height)];
1710
1710
  if (
1711
1711
  !hasArea(size) &&
1712
1712
  !!(