Skip to content

Commit

Permalink
fixed window fix bar in development mode
Browse files Browse the repository at this point in the history
  • Loading branch information
pesektomas committed Jan 30, 2020
1 parent 3439b94 commit 86ec5fd
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/framework/assets/js/admin/components/fixedBar.js
Expand Up @@ -14,6 +14,10 @@ export default class FixedBar {
static init () {
SymfonyToolbarSupport.registerOnToolbarShow(FixedBar.onSymfonyToolbarShow);
SymfonyToolbarSupport.registerOnToolbarHide(FixedBar.onSymfonyToolbarHide);

if (typeof Sfjs !== 'undefined' && Sfjs.getPreference('toolbar/displayState') !== 'none') {
FixedBar.onSymfonyToolbarShow();
}
}
}

Expand Down

0 comments on commit 86ec5fd

Please sign in to comment.