Skip to content

Commit 11d11d8

Browse files
committed
Fixing issue with 3D pins and legends growing in height with every model reload. Closes #1059
1 parent 917f295 commit 11d11d8

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

web-server/plugins/slycat-parameter-image/js/parameter-image-scatterplot.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2692,6 +2692,11 @@ $.widget("parameter_image.scatterplot",
26922692
{
26932693
// console.debug(`opening a vtp or stl`);
26942694

2695+
// Adjusting frame size to remove additional 20px that's added during frame creation. Works for
2696+
// other media, but caused 3D frame to grow by 20px each time the page is refreshed. So this
2697+
// adjustment fixes that.
2698+
frame_html.style({"height": (parseInt(frame_html.style("height"))-20) + 'px'});
2699+
26952700
// This is a VTP or STL file, so use the VTK 3d viewer
26962701
let vtk = frame_html
26972702
.append("div")

0 commit comments

Comments
 (0)