Update 0BDFDB.plugin.js

This commit is contained in:
Mirco Wittrien 2020-10-15 13:17:55 +02:00
parent 5a90753e5d
commit bc72e7ed0f
1 changed files with 1 additions and 4 deletions

View File

@ -7021,10 +7021,7 @@ module.exports = (_ => {
let maxWidth = BDFDB.DOMUtils.getInnerWidth(ele.parentElement);
if (maxWidth > 50) ele.style.setProperty("max-width", `${maxWidth}px`);
BDFDB.TimeUtils.timeout(_ => {
if (document.contains(ele.parentElement)) {
let newMaxWidth = BDFDB.DOMUtils.getInnerWidth(ele.parentElement);
if (newMaxWidth > maxWidth) ele.style.setProperty("max-width", `${newMaxWidth}px`);
}
if (document.contains(ele.parentElement)) BDFDB.ReactUtils.forceUpdate(this);
}, 3000);
let Animation = new LibraryModules.AnimationUtils.Value(0);
Animation