mol_dump_lib 0.0.292 → 0.0.293

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/web.js CHANGED
@@ -3675,8 +3675,7 @@ var $;
3675
3675
  (function ($) {
3676
3676
  let cache = null;
3677
3677
  function $mol_support_css_overflow_anchor() {
3678
- return cache ?? (cache = (!/Gecko\//.test(navigator.userAgent)
3679
- && this.$mol_dom_context.CSS?.supports('overflow-anchor:auto')) ?? false);
3678
+ return cache ?? (cache = this.$mol_dom_context.CSS?.supports('overflow-anchor:auto') ?? false);
3680
3679
  }
3681
3680
  $.$mol_support_css_overflow_anchor = $mol_support_css_overflow_anchor;
3682
3681
  })($ || ($ = {}));
@@ -3803,22 +3802,22 @@ var $;
3803
3802
  }
3804
3803
  let top2 = top;
3805
3804
  let bottom2 = bottom;
3806
- if (anchoring && (top <= limit_top) && (bottom2 < limit_bottom)) {
3807
- min2 = Math.max(0, max - 1);
3805
+ if (anchoring && (top < limit_top) && (bottom < limit_bottom)) {
3806
+ min2 = max;
3808
3807
  top2 = bottom;
3809
3808
  }
3810
- if ((bottom >= limit_bottom) && (top2 >= limit_top)) {
3811
- max2 = Math.min(min + 1, kids.length);
3809
+ if ((bottom > limit_bottom) && (top > limit_top)) {
3810
+ max2 = min;
3812
3811
  bottom2 = top;
3813
3812
  }
3813
+ while (anchoring && ((top2 > limit_top) && (min2 > 0))) {
3814
+ --min2;
3815
+ top2 -= kids[min2].minimal_height();
3816
+ }
3814
3817
  while (bottom2 < limit_bottom && max2 < kids.length) {
3815
3818
  bottom2 += kids[max2].minimal_height();
3816
3819
  ++max2;
3817
3820
  }
3818
- while (anchoring && ((top2 >= limit_top) && (min2 > 0))) {
3819
- --min2;
3820
- top2 -= kids[min2].minimal_height();
3821
- }
3822
3821
  return [min2, max2];
3823
3822
  }
3824
3823
  gap_before() {