Skip to content

Commit 4f257ea

Browse files
authored
Hardwired position parameters for help div (#2122)
* hardwired position parameters for help div * Modified sendToCenter to adjust position parameters in case canvas isn't defined
1 parent 3148d70 commit 4f257ea

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

js/widgets/widgetWindows.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,11 @@ function WidgetWindow(key, title) {
236236
let cRect = canvas.getBoundingClientRect();
237237

238238
if (cRect.width === 0 || cRect.height === 0) {
239-
// The canvas isn't shown so we don't know how large it really is
239+
// The canvas isn't shown so we set some approximate numbers
240+
this.setPosition(
241+
200,
242+
140
243+
)
240244
return this;
241245
}
242246

0 commit comments

Comments
 (0)