Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions src/nodes/base/BaseNode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -467,6 +467,9 @@ export function createNodeClass(
const progressNodeRef = this

this.onDrawForeground = function (ctx: CanvasRenderingContext2D) {
// Don't draw progress indicator when node is collapsed
if (this.flags?.collapsed) return

const status = progressNodeRef.executionStatus
if (!status || status === 'idle') return

Expand Down Expand Up @@ -587,6 +590,9 @@ export function createNodeClass(

// Override onDrawForeground to render images
this.onDrawForeground = function (ctx: CanvasRenderingContext2D) {
// Don't draw preview when node is collapsed
if (this.flags?.collapsed) return

// Get preview height from widget or use static value
let previewHeight = staticPreviewHeight
if (dynamicHeightWidget) {
Expand Down