Skip to content

Commit 5324717

Browse files
authored
Merge pull request #67 from LikaloLLC/fix/size-of-the-step-preview
Fix/size of the step preview
2 parents 0ec944d + 6d23a95 commit 5324717

6 files changed

Lines changed: 847 additions & 841 deletions

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "tourguidejs",
3-
"version": "1.1.1",
3+
"version": "1.1.2",
44
"src": "src/Tour.js",
55
"main": "tourguide.js",
66
"module": "tourguide.esm.js",

src/step/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,8 +116,8 @@ export default class Step {
116116
content.append(actions);
117117
}
118118
const tooltip = this.tooltip = u("<div role=\"document\" class=\"guided-tour-step-tooltip\"></div>");
119-
if (this.width) setStyle(tooltip, { width: this.width });
120-
if (this.height) setStyle(tooltip, { height: this.height });
119+
if (this.width) setStyle(tooltip, { width: this.width + "px", maxWidth: this.width + "px" });
120+
if (this.height) setStyle(tooltip, { height: this.height + "px", maxHeight: this.height + "px" });
121121
const tooltipinner = u(`<div class="guided-tour-step-tooltip-inner${this.layout === "horizontal" ? " step-layout-horizontal" : ""}"></div>`);
122122
const container = u(`<div class="guided-tour-step-content-container"></div>`);
123123
container.append(image).append(content);

0 commit comments

Comments
 (0)