Drop windowResize/windowResizeCallback in favor of ResizeObservable

This commit is contained in:
djmaze 2020-08-19 12:34:05 +02:00
parent e192b60d69
commit 7a21694396
14 changed files with 25 additions and 110 deletions

View file

@ -6,7 +6,6 @@ import { i18n } from 'Common/Translator';
import {
pInt,
previewMessage,
windowResize,
friendlySize,
isNonEmptyArray
} from 'Common/Utils';
@ -747,8 +746,6 @@ class MessageModel extends AbstractModel {
style = style ? (';' === style.substr(-1) ? style + ' ' : style + '; ') : '';
$this.attr('style', style + $this.attr(attr));
});
windowResize(500);
}
}
@ -798,8 +795,6 @@ class MessageModel extends AbstractModel {
}
}
});
windowResize(500);
}
}