forked from MapComplete/MapComplete
Workaround: popups move into zoom vertically too now on desktop
This commit is contained in:
parent
7dc7cc283d
commit
9a412c6b74
4 changed files with 17 additions and 13 deletions
|
@ -6,9 +6,11 @@ export default class LazyElement extends UIElement {
|
|||
private _content: UIElement = undefined;
|
||||
|
||||
public Activate: () => void;
|
||||
private _loadingContent: string;
|
||||
|
||||
constructor(content: (() => UIElement)) {
|
||||
constructor(content: (() => UIElement), loadingContent = "Rendering...") {
|
||||
super();
|
||||
this._loadingContent = loadingContent;
|
||||
this.dumbMode = false;
|
||||
const self = this;
|
||||
this.Activate = () => {
|
||||
|
@ -21,7 +23,7 @@ export default class LazyElement extends UIElement {
|
|||
|
||||
InnerRender(): string {
|
||||
if (this._content === undefined) {
|
||||
return "Rendering...";
|
||||
return this._loadingContent;
|
||||
}
|
||||
return this._content.InnerRender();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue