mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2026-01-20 19:41:07 -08:00
Removed the old code
This commit is contained in:
parent
54fbdcf467
commit
8fd1558179
1 changed files with 2 additions and 3 deletions
|
|
@ -677,9 +677,8 @@ onUiLoaded(async() => {
|
|||
targetElement.isExpanded = false;
|
||||
function autoExpand() {
|
||||
const canvas = document.querySelector(`${elemId} canvas[key="interface"]`);
|
||||
const isMainTab = activeElement === elementIDs.inpaint || activeElement === elementIDs.inpaintSketch || activeElement === elementIDs.sketch;
|
||||
|
||||
if (canvas && isMainTab) {
|
||||
|
||||
if (canvas) {
|
||||
if (hasHorizontalScrollbar(targetElement) && targetElement.isExpanded === false) {
|
||||
targetElement.style.visibility = "hidden";
|
||||
setTimeout(() => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue