dockview-core 6.2.1 → 6.2.2
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/dist/cjs/overlay/overlayRenderContainer.js +13 -3
- package/dist/dockview-core.js +14 -4
- package/dist/dockview-core.min.js +2 -2
- package/dist/dockview-core.min.js.map +1 -1
- package/dist/dockview-core.min.noStyle.js +2 -2
- package/dist/dockview-core.min.noStyle.js.map +1 -1
- package/dist/dockview-core.noStyle.js +14 -4
- package/dist/esm/overlay/overlayRenderContainer.js +13 -3
- package/dist/package/main.cjs.js +14 -4
- package/dist/package/main.cjs.min.js +2 -2
- package/dist/package/main.esm.min.mjs +2 -2
- package/dist/package/main.esm.mjs +14 -4
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* dockview-core
|
|
3
|
-
* @version 6.2.
|
|
3
|
+
* @version 6.2.2
|
|
4
4
|
* @link https://github.com/mathuo/dockview
|
|
5
5
|
* @license MIT
|
|
6
6
|
*/
|
|
@@ -11386,10 +11386,20 @@ class OverlayRenderContainer extends CompositeDisposable {
|
|
|
11386
11386
|
focusContainer.style.top = `${top}px`;
|
|
11387
11387
|
focusContainer.style.width = `${width}px`;
|
|
11388
11388
|
focusContainer.style.height = `${height}px`;
|
|
11389
|
-
//
|
|
11390
|
-
//
|
|
11391
|
-
|
|
11389
|
+
// Sync visibility/pointer-events with the panel's current
|
|
11390
|
+
// visibility at paint time. visibilityChanged() may have
|
|
11391
|
+
// flipped to hidden between scheduling this rAF and now;
|
|
11392
|
+
// unconditionally clearing `visibility:hidden` here would
|
|
11393
|
+
// leave a hidden panel visually visible at a stale position,
|
|
11394
|
+
// because onDidDimensionsChange skips non-visible panels and
|
|
11395
|
+
// never recomputes their box on subsequent resizes.
|
|
11396
|
+
if (panel.api.isVisible) {
|
|
11392
11397
|
focusContainer.style.visibility = '';
|
|
11398
|
+
focusContainer.style.pointerEvents = '';
|
|
11399
|
+
}
|
|
11400
|
+
else {
|
|
11401
|
+
focusContainer.style.visibility = 'hidden';
|
|
11402
|
+
focusContainer.style.pointerEvents = 'none';
|
|
11393
11403
|
}
|
|
11394
11404
|
toggleClass(focusContainer, 'dv-render-overlay-float', panel.group.api.location.type === 'floating');
|
|
11395
11405
|
});
|