@newview/ui 1.1.23 → 1.1.24

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.
@@ -191450,9 +191450,9 @@ class ModalInstance extends BaseInstance {
191450
191450
  if (flag) {
191451
191451
  this.getWidth();
191452
191452
  const layoutContent = document.getElementsByClassName("ivu-layout-content")[0].getBoundingClientRect();
191453
- const modalContent = document.getElementsByClassName("ivu-modal-content");
191454
- const modalBody = document.getElementsByClassName("ivu-modal-body");
191455
- const wrap = document.getElementsByClassName("ivu-modal-wrap");
191453
+ const modalContent = Array.from(document.getElementsByClassName("ivu-modal-content"));
191454
+ const modalBody = Array.from(document.getElementsByClassName("ivu-modal-body"));
191455
+ const wrap = Array.from(document.getElementsByClassName("ivu-modal-wrap"));
191456
191456
  let maxWidth = layoutContent.width;
191457
191457
  let maxHeight = layoutContent.height;
191458
191458
  modalContent.forEach((element) => {