Skip to content

Commit

Permalink
Fix RestoreLayout tool (#633)
Browse files Browse the repository at this point in the history
* Fix RestoreLayout tool

* NextVersion.md

* Missing tildes in PreviewFeatureProvider JSdoc
  • Loading branch information
raplemie authored Dec 13, 2023
1 parent ca4305e commit 3ba69fb
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 17 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"changes": [
{
"packageName": "@itwin/appui-react",
"comment": "Fix `RestoreLayout` tool.",
"type": "none"
}
],
"packageName": "@itwin/appui-react"
}
29 changes: 13 additions & 16 deletions docs/changehistory/NextVersion.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,39 +3,36 @@
Table of contents:

- [@itwin/appui-react](#itwinappui-react)
- [Fixes](#fixes)
- [Changes](#changes)
- [Fixes](#fixes)
- [@itwin/components-react](#itwincomponents-react)
- [Fixes](#fixes)
- [Improvements](#improvements)
- [Additions](#additions)
- [Changes](#changes-1)
- [Fixes](#fixes-1)

## @itwin/appui-react

### Fixes

- Localize popout error message text.

### Changes

- Promoted `FrameworkToolAdmin` to _beta_. #618
- Correctly handle `WidgetState.Unloaded` and keep widget content unmounted when widget is unloaded. #617
- Promoted `FrameworkToolAdmin` to _beta_. [#618](https://github.com/iTwin/appui/pull/618)
- Correctly handle `WidgetState.Unloaded` and keep widget content unmounted when widget is unloaded. [#617](https://github.com/iTwin/appui/pull/617)

### Fixes

- Fixed popout widgets getting incrementally smaller or larger each time popped out. [#563](https://github.com/iTwin/appui/issues/563)
- Localize popout error message text. [#628](https://github.com/iTwin/appui/pull/628)
- Fixed popout widgets getting incrementally smaller or larger each time popped out. [#622](https://github.com/iTwin/appui/pull/622)
- Fixed "RestoreAllFrontstagesTool" missing "pinned" state. [#633](https://github.com/iTwin/appui/pull/633)

## @itwin/components-react

### Fixes
### Additions

- Fixed data filterers to work with uppercase letters after using the constructor.
- Add `removeAllItems` function which will clear all items in the filter state. [#629](https://github.com/iTwin/appui/pull/629)

### Improvements
### Changes

- Reset to default operator when property of a rule item is changed in `FilterBuilderState`.
- Reset to default operator when property of a rule item is changed in `FilterBuilderState`. [#619](https://github.com/iTwin/appui/pull/619)

### Additions
### Fixes

- Add `removeAllItems` function which will clear all items in the filter state.
- Fixed data filterers to work with uppercase letters after using the constructor. [#620](https://github.com/iTwin/appui/pull/620)
Original file line number Diff line number Diff line change
Expand Up @@ -699,6 +699,7 @@ export class FrontstageDef {
for (const panelDef of this.panelDefs) {
panelDef.size = panelDef.defaultSize;
panelDef.panelState = panelDef.defaultState;
panelDef.pinned = panelDef.initialConfig?.pinned ?? true;
}
for (const widgetDef of this.widgetDefs) {
widgetDef.setWidgetState(widgetDef.defaultState);
Expand Down
1 change: 1 addition & 0 deletions ui/appui-react/src/appui-react/preview/PreviewFeatures.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ export interface PreviewFeaturesProviderProps {
* [/...]
* </Provider>
* </PreviewFeaturesProvider>
* ```
* @beta
*/
export function PreviewFeaturesProvider({
Expand Down
2 changes: 1 addition & 1 deletion ui/appui-react/src/appui-react/widgets/WidgetDef.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,7 @@ export class WidgetDef {
public setWidgetState(newState: WidgetState): void {
const frontstageDef = UiFramework.frontstages.activeFrontstageDef;
const state = frontstageDef?.nineZoneState;
if (!state) return;
if (!state || this.isStatusBar) return;
if (!frontstageDef.findWidgetDef(this.id)) return;

switch (newState) {
Expand Down

0 comments on commit 3ba69fb

Please sign in to comment.