Skip to content

Commit

Permalink
don't relayout if content is removed dynamically, see #853
Browse files Browse the repository at this point in the history
  • Loading branch information
jessegreenberg committed Sep 8, 2022
1 parent b5eb099 commit 9719c1d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion js/preferences/AudioPreferencesPanel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,9 @@ class AudioPreferencesTabPanel extends VBox {
*/
public constructor( audioModel: AudioModel, providedOptions: AudioPreferencesPanelOptions ) {

const contentOptions: VBoxOptions = { align: 'left', spacing: PreferencesDialog.CONTENT_SPACING };
// Some contents of this Dialog will be dynamically removed. Dont resize when this happens because we don't want
// to shift contents of the entire Preferences dialog.
const contentOptions: VBoxOptions = { align: 'left', spacing: PreferencesDialog.CONTENT_SPACING, excludeInvisibleChildrenFromBounds: false };
const leftContent = new VBox( contentOptions );
const rightContent = new VBox( contentOptions );

Expand Down

0 comments on commit 9719c1d

Please sign in to comment.