mirror of
https://github.com/Tencent/tmagic-editor.git
synced 2025-05-05 01:38:57 +08:00
fix(editor): 画布大小变化,滚动条重置
This commit is contained in:
parent
10d2b3cc9b
commit
bee9f92abb
@ -40,6 +40,7 @@ export class ScrollViewer extends EventEmitter {
|
|||||||
this.setSize();
|
this.setSize();
|
||||||
this.setScrollSize();
|
this.setScrollSize();
|
||||||
this.resizeObserver.observe(this.container);
|
this.resizeObserver.observe(this.container);
|
||||||
|
this.resizeObserver.observe(this.target);
|
||||||
}
|
}
|
||||||
|
|
||||||
public destroy() {
|
public destroy() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user