mirror of
https://github.com/rr-/szurubooru.git
synced 2025-07-17 08:26:24 +00:00
client/posts: fix resize modes on chrome
This commit is contained in:
@ -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() {
|
||||
|
Reference in New Issue
Block a user