client/posts: fix resize modes on chrome

This commit is contained in:
rr-
2017-01-03 20:00:41 +01:00
parent e2fcd08ce9
commit 4340b4d9b2
4 changed files with 12 additions and 15 deletions

View File

@ -86,8 +86,12 @@ class PostContentControl {
}
_resize(width, height) {
this._postContentNode.style.width = width + 'px';
this._postContentNode.style.height = height + 'px';
const resizeListenerNodes = [this._postContentNode].concat(
...this._postContentNode.querySelectorAll('.resize-listener'));
for (let node of resizeListenerNodes) {
node.style.width = width + 'px';
node.style.height = height + 'px';
}
}
_refreshSize() {