mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-08-01 07:12:07 +00:00
Recompute scrollbar gutter on every render
Address issues with search and sort re-renders by ensuring the scrollbar gutter is consistently updated with each rendering cycle.
This commit is contained in:
@@ -271,7 +271,6 @@ function ApplyPlugins(plugins) {
|
|||||||
expandedPluginIds = new Set(Array.from(expandedPluginIds).filter((pluginKey) => pluginsById.has(pluginKey)));
|
expandedPluginIds = new Set(Array.from(expandedPluginIds).filter((pluginKey) => pluginsById.has(pluginKey)));
|
||||||
|
|
||||||
RenderPlugins();
|
RenderPlugins();
|
||||||
SyncPluginListHeaderGutter();
|
|
||||||
RenderDetails();
|
RenderDetails();
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -337,6 +336,7 @@ function RenderPlugins() {
|
|||||||
empty.className = "empty-state";
|
empty.className = "empty-state";
|
||||||
empty.textContent = "No plugins found";
|
empty.textContent = "No plugins found";
|
||||||
pluginList.appendChild(empty);
|
pluginList.appendChild(empty);
|
||||||
|
SyncPluginListHeaderGutter();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -398,6 +398,9 @@ function RenderPlugins() {
|
|||||||
empty.appendChild(document.createTextNode('"'));
|
empty.appendChild(document.createTextNode('"'));
|
||||||
pluginList.appendChild(empty);
|
pluginList.appendChild(empty);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// why: recompute the scrollbar gutter on every render - search and sort re-render via RenderPlugins
|
||||||
|
SyncPluginListHeaderGutter();
|
||||||
}
|
}
|
||||||
|
|
||||||
function GetErrorText(plugin) {
|
function GetErrorText(plugin) {
|
||||||
|
|||||||
Reference in New Issue
Block a user