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 06b5b08 commit be0ee5f
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 { AlignController } from './controllers/AlignController';
import { ContentController } from './controllers/ContentController';
import { SizeController } from './controllers/SizeController';
import { StyleController } from './controllers/StyleController';
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 @@ -231,7 +231,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 be0ee5f

Please sign in to comment.