mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2024-06-07 21:20:49 +00:00
fix bug caused by resize on selecting other page tabs.
This commit is contained in:
parent
c8e21f6c8b
commit
c92c4007af
@ -144,12 +144,11 @@ class Clusterize {
|
||||
}
|
||||
|
||||
async refresh(force) {
|
||||
// Refresh can be a longer operation so we want to debounce it to
|
||||
// avoid refreshing too often.
|
||||
if (!this.setup_has_run || !this.enabled) {
|
||||
if (!this.setup_has_run || !this.enabled || isNullOrUndefined(this.content_elem.offsetParent)) {
|
||||
return;
|
||||
}
|
||||
|
||||
// Refresh can be a longer operation so we want to debounce it to
|
||||
// avoid refreshing too often.
|
||||
clearTimeout(this.#refresh_debounce_timer);
|
||||
this.#refresh_debounce_timer = setTimeout(
|
||||
async () => {
|
||||
|
Loading…
Reference in New Issue
Block a user