Skip to content

HTMLDiagram keeps expanding without height #113

@whoot

Description

@whoot

I just found a funny bug. Instead of using the maximum height of a Section for the diagram, the diagram keeps expanding when not specifying the height.

Example:

Dashboard -Name 'Test' -UseCssLinks:$true -UseJavaScriptLinks:$true -FilePath $PSScriptRoot\test.html -Show {
	Tab -Name 'Test' {
		Section -Name "Test" {
			New-HTMLDiagram {
				New-DiagramOptionsPhysics -Enabled $false
				New-DiagramOptionsInteraction -Hover $true
				
				New-DiagramNode -Label "test1" -ColorBackground Black -FontColor White -Shape box
				New-DiagramNode -Label "test2" -ColorBackground Black -FontColor White -Shape box

				New-DiagramLink -From "test1" -To "test2" -ArrowsFromEnabled $true -ArrowsToEnabled $true
			}
		}
	}
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinggood first issueGood for newcomershelp wantedExtra attention is needed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions