set default size

This commit is contained in:
Atul R 2019-06-10 08:11:52 +02:00
parent 86fa07bb05
commit 02a0552c32

View File

@ -140,6 +140,6 @@ rootViewFlexLayout.addWidget(row4, row4.getFlexNode());
win.show();
setTimeout(() => {
win.resize(400, 600); // This is a hack to solve layout issues on initial render. Will need to fix this.
win.resize(210, 150); // This is a hack to solve layout issues on initial render. Will need to fix this.
}, 10);
globals.win = win; //to keep gc from collecting ui widgets