Skip to content

Commit

Permalink
[MS-42] call postCallback when window size changed (#26)
Browse files Browse the repository at this point in the history
* draw must call PostCallback

* flitter version up
  • Loading branch information
Moon-DaeSeung authored Mar 25, 2024
1 parent 247afae commit c54c2e4
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/flitter/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@meursyphus/flitter",
"version": "0.0.7",
"version": "0.0.8",
"description": "A declarative, widget-based library built on SVG for simplifying data visualization with a Flutter-like syntax.",
"keywords": [
"flitter",
Expand Down
2 changes: 1 addition & 1 deletion packages/flitter/src/runApp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,6 @@ export class AppRunner {

this.didRun = true;
this.draw();
this.scheduler.consumePostCallbacks();

return this.renderContext.view.innerHTML;
}
Expand Down Expand Up @@ -125,6 +124,7 @@ export class AppRunner {
this.layout();
this.renderOwner.rearrangeDomOrder();
this.paint();
this.scheduler.consumePostCallbacks();
}

rebuild() {
Expand Down

0 comments on commit c54c2e4

Please sign in to comment.