Skip to content

Commit

Permalink
Use height as 100% in VisJS.
Browse files Browse the repository at this point in the history
  • Loading branch information
allisterb committed Jul 25, 2023
1 parent dd6ae7b commit cfce4fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Stratis.DevEx.Drawing/Html.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public static string DrawControlFlowGraph(Graph graph)
var stringBuilder = new StringBuilder();
var divId = Guid.NewGuid().ToString("N");
stringBuilder.AppendLine("<html lang=\"en\"><head><script type=\"text/javascript\" src=\"https://unpkg.com/vis-network/standalone/umd/vis-network.min.js\"></script><title>Title</title><body>");
stringBuilder.AppendLine($"<div id=\"{divId}\" style=\"height:1000px; width:100%\"></div>");
stringBuilder.AppendLine($"<div id=\"{divId}\" style=\"height:100%; width:100%\"></div>");
stringBuilder.AppendLine("</div>");
stringBuilder.AppendLine("<script type=\"text/javascript\">");
stringBuilder.AppendLine($@"
Expand Down

0 comments on commit cfce4fc

Please sign in to comment.