@netless/telebox-insider 0.2.26 → 0.2.27

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@netless/telebox-insider",
3
- "version": "0.2.26",
3
+ "version": "0.2.27",
4
4
  "private": false,
5
5
  "description": "Window widget for Whiteboard",
6
6
  "license": "MIT",
@@ -888,8 +888,12 @@ export class TeleBox {
888
888
  const absoluteWidth = size.width * containerRect.width;
889
889
  const absoluteHeight = size.height * containerRect.height;
890
890
  return {
891
- width: absoluteWidth,
892
- height: absoluteHeight,
891
+ width:
892
+ absoluteWidth +
893
+ (minimized && collectorRect ? 1 : 0),
894
+ height:
895
+ absoluteHeight +
896
+ (minimized && collectorRect ? 1 : 0),
893
897
  x: coord.x * containerRect.width,
894
898
  y: coord.y * containerRect.height,
895
899
  scaleX: