Skip to content

Commit

Permalink
Enhancement/Window size of blocks tour : Issue - #3451 (#3452)
Browse files Browse the repository at this point in the history
* fixed window size of blockstour

* changes updated to fit to the different scrren sizess
  • Loading branch information
sujithyadav998 authored Jan 10, 2024
1 parent 43d08eb commit 2599b79
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions js/widgets/help.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,9 @@ class HelpWidget {
this.isOpen = true;

const widgetWindow = window.widgetWindows.windowFor(this, "help", "help", false);
widgetWindow.getWidgetBody().style.overflowY = "auto";
//widgetWindow.getWidgetBody().style.overflowY = "auto";
// const canvasHeight = docById("myCanvas").getBoundingClientRect().height;
widgetWindow.getWidgetBody().style.maxHeight = "500px";
widgetWindow.getWidgetBody().style.maxHeight = "70vh";
this.widgetWindow = widgetWindow;
widgetWindow.clear();
widgetWindow.show();
Expand Down Expand Up @@ -214,7 +214,7 @@ class HelpWidget {

if (message) {
const helpBody = docById("helpBodyDiv");
helpBody.style.height = "";
helpBody.style.height = "70vh";

let body = "";
if (message.length > 1) {
Expand Down Expand Up @@ -456,7 +456,7 @@ class HelpWidget {
this._helpDiv = document.createElement("div");

//this._helpDiv.style.width = "500px";
this._helpDiv.style.height = "500px";
this._helpDiv.style.height = "70vh";
this._helpDiv.style.backgroundColor = "#e8e8e8";

const helpDivHTML =
Expand Down Expand Up @@ -544,7 +544,7 @@ class HelpWidget {
const message = block.helpString;

const helpBody = docById("helpBodyDiv");
helpBody.style.height = "500px";
helpBody.style.height = "70vh";
helpBody.style.backgroundColor = "#e8e8e8";
if (message) {
let body = "";
Expand Down

0 comments on commit 2599b79

Please sign in to comment.