Skip to content

Commit f3a4f11

Browse files
committed
Corrected initial windows size problem
1 parent 5f857ab commit f3a4f11

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

src/core/Simulator.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,7 @@ class pSimulator {
152152
*/
153153
setEngineConfig(configFunc) {
154154
configFunc(this.config.engine);
155+
window.windowResized(); // if proportions changed
155156
return this;
156157
}
157158

versions/1.1.0/pSEngine.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,7 @@ class pSimulator {
168168
*/
169169
setEngineConfig(configFunc) {
170170
configFunc(this.config.engine);
171+
window.windowResized(); // if proportions changed
171172
return this;
172173
}
173174

versions/1.1.0/pSEngine.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)