Commit 8fd15581 authored by Danil Boldyrev's avatar Danil Boldyrev
Browse files

Removed the old code

parent 54fbdcf4
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -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(() => {