@xh/hoist 75.0.0-SNAPSHOT.1752533177209 → 75.0.0-SNAPSHOT.1752604774043
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.
|
@@ -292,13 +292,14 @@ export class PanelModel extends HoistModel implements Persistable<PanelPersistSt
|
|
|
292
292
|
setCollapsed(collapsed: boolean) {
|
|
293
293
|
throwIf(collapsed && !this.collapsible, 'Panel does not support collapsing.');
|
|
294
294
|
|
|
295
|
-
// When opening we never want to shrink -- in that degenerate
|
|
296
|
-
// Can happen when no min height and title bar, and user has
|
|
295
|
+
// When opening a rendered collapsed panel we never want to shrink it -- in that degenerate
|
|
296
|
+
// case restore default size. Can happen when no min height and title bar, and user has
|
|
297
|
+
// sized panel to be very small.
|
|
297
298
|
if (this.collapsed && !collapsed) {
|
|
298
299
|
const el = this._resizeRef?.current,
|
|
299
300
|
currSize = this.vertical ? el?.offsetHeight : el?.offsetWidth,
|
|
300
301
|
{size} = this;
|
|
301
|
-
if (isNil(currSize)
|
|
302
|
+
if (!isNil(currSize) && (isNil(size) || (isNumber(size) && size < currSize))) {
|
|
302
303
|
this.size = this.defaultSize;
|
|
303
304
|
}
|
|
304
305
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xh/hoist",
|
|
3
|
-
"version": "75.0.0-SNAPSHOT.
|
|
3
|
+
"version": "75.0.0-SNAPSHOT.1752604774043",
|
|
4
4
|
"description": "Hoist add-on for building and deploying React Applications.",
|
|
5
5
|
"repository": "github:xh/hoist-react",
|
|
6
6
|
"homepage": "https://xh.io",
|