@netless/telebox-insider 1.0.0-alpha.13 → 1.0.0-alpha.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
package/src/TeleBox/index.ts
CHANGED
|
@@ -817,8 +817,8 @@ export class TeleBox {
|
|
|
817
817
|
const observer = new ResizeObserver(() => {
|
|
818
818
|
const rect = $content.getBoundingClientRect();
|
|
819
819
|
this._contentRect$.setValue({
|
|
820
|
-
x:
|
|
821
|
-
y:
|
|
820
|
+
x: 0,
|
|
821
|
+
y: 0,
|
|
822
822
|
width: rect.width,
|
|
823
823
|
height: rect.height,
|
|
824
824
|
});
|
|
@@ -114,8 +114,8 @@ export class TeleBoxManager {
|
|
|
114
114
|
const observer = new ResizeObserver(() => {
|
|
115
115
|
const rect = root.getBoundingClientRect();
|
|
116
116
|
rootRect$.setValue({
|
|
117
|
-
x:
|
|
118
|
-
y:
|
|
117
|
+
x: 0,
|
|
118
|
+
y: 0,
|
|
119
119
|
width: rect.width,
|
|
120
120
|
height: rect.height,
|
|
121
121
|
});
|