-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix popouts opening and saving as incorrect size (#622)
* Popout widget will now open to correct size * Api signature changes * Changelogs * Trigger tests * Remove test trigger * seperate delta height and width checks because of logic
- Loading branch information
1 parent
6319c32
commit ca4305e
Showing
6 changed files
with
76 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 10 additions & 0 deletions
10
common/changes/@itwin/appui-react/joeh-popoutSmallerOrLarger_2023-12-07-17-24.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"changes": [ | ||
{ | ||
"packageName": "@itwin/appui-react", | ||
"comment": "Fixed bug where popouts would get incrementally smaller or larger each time opened", | ||
"type": "none" | ||
} | ||
], | ||
"packageName": "@itwin/appui-react" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
ui/appui-react/src/appui-react/childwindow/ChildWindowConfig.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
/*--------------------------------------------------------------------------------------------- | ||
* Copyright (c) Bentley Systems, Incorporated. All rights reserved. | ||
* See LICENSE.md in the project root for license terms and full copyright notice. | ||
*--------------------------------------------------------------------------------------------*/ | ||
/** | ||
* An extension of a Window to be used for Popout Widgets. | ||
* @internal | ||
*/ | ||
export interface ChildWindow extends Window { | ||
/** Width that child window wants to open to */ | ||
expectedWidth?: number; | ||
/** Height that child window wants to open to */ | ||
expectedHeight?: number; | ||
/** Difference between width child window actually opened to as compared to expected */ | ||
deltaWidth?: number; | ||
/** Difference between height child window actually opened to as compared to expected */ | ||
deltaHeight?: number; | ||
/** If outer size should be used for calculations instead of inner size */ | ||
shouldUseOuterSized?: boolean; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters