mol_dump_lib 0.0.293 → 0.0.294

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.mjs CHANGED
@@ -3802,11 +3802,11 @@ var $;
3802
3802
  }
3803
3803
  let top2 = top;
3804
3804
  let bottom2 = bottom;
3805
- if (anchoring && (top < limit_top) && (bottom < limit_bottom)) {
3805
+ if (anchoring && (top < limit_top) && (bottom < limit_bottom) && (max < kids.length)) {
3806
3806
  min2 = max;
3807
3807
  top2 = bottom;
3808
3808
  }
3809
- if ((bottom > limit_bottom) && (top > limit_top)) {
3809
+ if ((bottom > limit_bottom) && (top > limit_top) && (min > 0)) {
3810
3810
  max2 = min;
3811
3811
  bottom2 = top;
3812
3812
  }