Skip to content

Commit

Permalink
Fixing issue with 3D pins and legends growing in height with every mo…
Browse files Browse the repository at this point in the history
…del reload. Closes #1059
  • Loading branch information
alexsielicki committed Feb 10, 2022
1 parent 917f295 commit 11d11d8
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2692,6 +2692,11 @@ $.widget("parameter_image.scatterplot",
{
// console.debug(`opening a vtp or stl`);

// Adjusting frame size to remove additional 20px that's added during frame creation. Works for
// other media, but caused 3D frame to grow by 20px each time the page is refreshed. So this
// adjustment fixes that.
frame_html.style({"height": (parseInt(frame_html.style("height"))-20) + 'px'});

// This is a VTP or STL file, so use the VTK 3d viewer
let vtk = frame_html
.append("div")
Expand Down

0 comments on commit 11d11d8

Please sign in to comment.