Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🐛 [Frontend] Bugfix: Do not recreate login page after resize #7118

Merged
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ qx.Class.define("osparc.auth.LoginPageSplit", {
const layout = new qx.ui.layout.HBox();
this._setLayout(layout);

const loginPage = this.__loginPage = new osparc.auth.LoginWithDecorators();
loginPage.addListener("done", e => this.fireDataEvent("done", e.getData()));

this.__rebuildLayout();

setTimeout(() => this.__resized(), 100);
Expand All @@ -51,6 +54,8 @@ qx.Class.define("osparc.auth.LoginPageSplit", {
},

members: {
__loginPage: null,

_getBackgroundImage: function() {
throw new Error("Abstract method called!");
},
Expand All @@ -67,8 +72,7 @@ qx.Class.define("osparc.auth.LoginPageSplit", {
__rebuildLayout: function() {
this._removeAll();

const loginPage = new osparc.auth.LoginWithDecorators();
loginPage.addListener("done", e => this.fireDataEvent("done", e.getData()));
const loginPage = this.__loginPage;
const container = new qx.ui.container.Scroll();
container.add(loginPage);
const spacers = [
Expand Down
Loading