Geogebra scaling issue

Expected to load properly in modern web browsers that support basic ES6 features (Chrome, Firefox, Edge).

Geogebra item: Np8D5HW6

Displays full content of applet without toolbar.

Displays cropped applet (not desired) when the required toolbar is enabled. Expected behavior is that the toolbar and applet's content are displayed in full. The applet appears to be cropping at the original aspect ratio of the applet without the toolbar.

Source code