mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-23 07:09:20 +01:00
ET2Button doesn't get resized properly after set/remove label therefore try to force an update
This commit is contained in:
parent
32392ea0e3
commit
b25346c1e4
@ -52,10 +52,16 @@ export class Et2Button extends ButtonMixin(Et2InputWidget(SlButton))
|
|||||||
{
|
{
|
||||||
const textNode = document.createTextNode(new_label);
|
const textNode = document.createTextNode(new_label);
|
||||||
this.appendChild(textNode);
|
this.appendChild(textNode);
|
||||||
|
// for some reason button doesn't get resized properly without a forced rendereing therefore the
|
||||||
|
// requestUpdate is used to trigger a refresh.
|
||||||
|
this.requestUpdate();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
this._labelNode.textContent = new_label;
|
this._labelNode.textContent = new_label;
|
||||||
|
// for some reason button doesn't get resized properly without a forced rendereingtherefore the
|
||||||
|
// requestUpdate is used to trigger a refresh.
|
||||||
|
this.requestUpdate();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user