Refresh 3D view when image is resized

This needs more work, height of image must be adapted for passed
dimensions, else it looks strange for very tall viewports.
This commit is contained in:
Rikard Bartholf
2017-05-19 11:48:48 +02:00
parent 587ad487e7
commit 690c5c41a6
@@ -46,6 +46,7 @@ function Viewport(canvas) {
// Apertures sometimes overlaps the viewports bounding rect. // Apertures sometimes overlaps the viewports bounding rect.
// Solve this by bringing it to the front after apertures are applied. // Solve this by bringing it to the front after apertures are applied.
_rect.bringToFront(); _rect.bringToFront();
canvas.refresh3dView();
} }