Skip to content

Commit d577fa6

Browse files
committed
Re-add forced refresh. There are some re-render issues still.
1 parent ef362a8 commit d577fa6

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

src/components/LiteGraphCanvasSplitterOverlay.vue

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
</div>
1717

1818
<Splitter
19-
key="main-splitter-stable"
19+
:key="splitterRefreshKey"
2020
class="bg-transparent pointer-events-none border-none flex-1 overflow-hidden"
2121
:state-key="sidebarStateKey"
2222
state-storage="local"
@@ -137,6 +137,15 @@ const sidebarStateKey = computed(() => {
137137
: // When no tab is active, use a default key to maintain state
138138
(activeSidebarTabId.value ?? 'default-sidebar')
139139
})
140+
141+
/**
142+
* Force refresh the splitter when right panel visibility changes to recalculate the width
143+
*/
144+
const splitterRefreshKey = computed(() => {
145+
return rightSidePanelVisible.value
146+
? 'main-splitter-with-right-panel'
147+
: 'main-splitter'
148+
})
140149
</script>
141150

142151
<style scoped>

0 commit comments

Comments
 (0)