Skip to content

Commit

Permalink
fix(limel-collapsible-section): call dispatchResizeEvent when section…
Browse files Browse the repository at this point in the history
… opened

fix #192
  • Loading branch information
BregenzerK authored and adrianschmidt committed Nov 14, 2018
1 parent 3360dce commit 296f091
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/components/collapsible-section/collapsible-section.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { Component, Event, EventEmitter, Prop } from '@stencil/core';
import { dispatchResizeEvent } from '../../util/dispatch-resize-event';

@Component({
tag: 'limel-collapsible-section',
Expand Down Expand Up @@ -57,6 +58,8 @@ export class CollapsibleSection {

if (this.isOpen) {
this.open.emit();
const waitForUiToRender = 100;
setTimeout(dispatchResizeEvent, waitForUiToRender);
} else {
this.close.emit();
}
Expand Down

0 comments on commit 296f091

Please sign in to comment.