Skip to content

Commit

Permalink
Merge pull request #67 from LikaloLLC/fix/size-of-the-step-preview
Browse files Browse the repository at this point in the history
Fix/size of the step preview
  • Loading branch information
it-s authored Jan 9, 2023
2 parents 0ec944d + 6d23a95 commit 5324717
Show file tree
Hide file tree
Showing 6 changed files with 847 additions and 841 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "tourguidejs",
"version": "1.1.1",
"version": "1.1.2",
"src": "src/Tour.js",
"main": "tourguide.js",
"module": "tourguide.esm.js",
Expand Down
4 changes: 2 additions & 2 deletions src/step/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,8 @@ export default class Step {
content.append(actions);
}
const tooltip = this.tooltip = u("<div role=\"document\" class=\"guided-tour-step-tooltip\"></div>");
if (this.width) setStyle(tooltip, { width: this.width });
if (this.height) setStyle(tooltip, { height: this.height });
if (this.width) setStyle(tooltip, { width: this.width + "px", maxWidth: this.width + "px" });
if (this.height) setStyle(tooltip, { height: this.height + "px", maxHeight: this.height + "px" });
const tooltipinner = u(`<div class="guided-tour-step-tooltip-inner${this.layout === "horizontal" ? " step-layout-horizontal" : ""}"></div>`);
const container = u(`<div class="guided-tour-step-content-container"></div>`);
container.append(image).append(content);
Expand Down
Loading

0 comments on commit 5324717

Please sign in to comment.