Skip to content

Commit

Permalink
fixed missing closing parenthesis (#3370)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ashish020202 authored Nov 25, 2023
1 parent 4f47794 commit 6afd680
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion js/widgets/jseditor.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,12 +75,13 @@ class JSEditor {
* Sets up CodeJar.
* @returns {void}
*/

_setup() {
this.widgetWindow.onmaximize = () => {
const editor = this.widgetWindow.getWidgetBody().childNodes[0];
editor.style.width = this.widgetWindow._maximized ? "100%" : "39rem";
editor.style.height = this.widgetWindow._maximized
? `calc(100vh - ${64 + 33}px`
? `calc(100vh - ${64 + 33}px)`
: `${docById("overlayCanvas").height - 33 - 128 - 12}px`;
};

Expand Down

0 comments on commit 6afd680

Please sign in to comment.