Skip to content
Open
2 changes: 1 addition & 1 deletion conf/pg_config.dist.yml
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ modules:
- [Multiple]
- [PGrandom]
- [Regression]
- ['Plots::Plot', 'Plots::Axes', 'Plots::Data', 'Plots::Tikz', 'Plots::JSXGraph', 'Plots::GD']
- ['Plots::Plot', 'Plots::Axes', 'Plots::Data', 'Plots::Tikz', 'Plots::JSXGraph']
- [Select]
- [Units]
- [VectorField]
Expand Down
4 changes: 2 additions & 2 deletions htdocs/js/ImageView/imageview.js
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@
if (graphDiv) {
graphDiv.style.width = width + 'px';
graphDiv.style.height = height + 'px';
this.dispatchEvent(new Event('resized.imageview'));
graphDiv.dispatchEvent(new Event('resized.imageview'));
}

// Re-position the modal.
Expand Down Expand Up @@ -312,7 +312,7 @@
backdrop.style.opacity = '0.2';
});
modal.addEventListener('hidden.bs.modal', () => {
if (imgType == 'div') this.dispatchEvent(new Event('hidden.imageview'));
if (graphDiv) graphDiv.dispatchEvent(new Event('hidden.imageview'));
bsModal.dispose();
modal.remove();
window.removeEventListener('resize', onWinResize);
Expand Down
Loading