Skip to content

Commit

Permalink
fix setStyles to include conditional styles
Browse files Browse the repository at this point in the history
  • Loading branch information
CyberDex committed May 6, 2024
1 parent 3776f7c commit f35f9ac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Layout.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { ContentController } from './controllers/ContentController';
import { SizeController } from './controllers/SizeController';
import { StyleController } from './controllers/StyleController';
import { PixiTextStyle } from './utils/text';
import { Content, LayoutOptions, Styles } from './utils/types';
import { ConditionalStyles, Content, LayoutOptions, Styles } from './utils/types';

/**
* Layout controller class for any PixiJS Container based instance.
Expand Down Expand Up @@ -232,7 +232,7 @@ export class LayoutSystem
* Updates the layout styles and resize/reposition it and its children basing on new styles.
* @param styles
*/
setStyles(styles: Styles)
setStyles(styles: Styles & ConditionalStyles)
{
this._style.set(styles);
this.updateParents();
Expand Down

0 comments on commit f35f9ac

Please sign in to comment.