Skip to content

Commit 9f56913

Browse files
committed
Tooltip: Enhanced visual test to include a few more buttons and a high element to get a scrollbar
1 parent d3077c3 commit 9f56913

File tree

1 file changed

+14
-5
lines changed

1 file changed

+14
-5
lines changed

tests/visual/tooltip/tooltip.html

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -55,18 +55,25 @@
5555
tooltipClass: "ui-state-highlight"
5656
});
5757

58-
$("#button1").button().tooltip();
58+
var positionOnTop = {
59+
position: {
60+
my: "center bottom",
61+
at: "center top",
62+
offset: "0 -5"
63+
}
64+
};
65+
$("#button1").button().tooltip(positionOnTop);
5966
$("#button2").button({
6067
icons: {
6168
primary: "ui-icon-wrench"
6269
}
63-
}).tooltip();
64-
$("#button3").button({
70+
}).tooltip(positionOnTop);
71+
$("#button3, #button4").button({
6572
icons: {
6673
primary: "ui-icon-wrench"
6774
},
6875
text: false
69-
}).tooltip();
76+
}).tooltip(positionOnTop);
7077
}
7178
enable();
7279

@@ -136,14 +143,16 @@
136143

137144
<button id="button1" title="Button Tooltip">Button Label</button>
138145
<button id="button2" title="Icon Button">Button with Icon</button>
139-
<button id="button3">Icon Only Button</button>
146+
<button id="button3">Icon Only Button 1</button>
147+
<button id="button4">Icon Only Button 2</button>
140148

141149
<div id="footnote">This is <strong>the</strong> footnote, including other elements</div>
142150

143151
<button id="disable">Toggle disabled</button>
144152
<button id="toggle">Toggle widget</button>
145153
</div>
146154

155+
<div style="height: 2000px"></div>
147156

148157
</body>
149158
</html>

0 commit comments

Comments
 (0)