8000 Dialog: Restrict title to a single line. Fixes #7773 - Dialog: If tit… · faroncoder/jquery-ui@bdb0fbe · GitHub
[go: up one dir, main page]

Skip to content
8000

Commit bdb0fbe

Browse files
committed
Dialog: Restrict title to a single line. Fixes #7773 - Dialog: If titlebar changes height during resize, button pane positioning changes.
1 parent 5ba267e commit bdb0fbe

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

tests/visual/dialog/complex-dialogs.html

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,11 @@
2020
<script src="../../../ui/jquery.ui.autocomplete.js"></script>
2121
<script src="../../../ui/jquery.ui.tooltip.js"></script>
2222

23+
<style>
24+
body {
25+
font-size: 62.5%;
26+
}
27+
</style>
2328
<script>
2429
$(function() {
2530
var dialog = $( "#dialog" ).dialog({
@@ -98,7 +103,7 @@
98103

99104
<button id="open-dialog">Reopen dialog</button>
100105

101-
<div id="dialog" title="Basic dialog">
106+
<div id="dialog" title="Basic dialog, but with a really long title that doesn't quite fit.">
102107
<p>This is the default dialog which is useful for displaying information. The dialog window can be moved, resized and closed with the 'x' icon.</p>
103108
<p><button id="open-datepicker">Open another window with a datepicker.</button></p>
104109
<p><button id="destroy-dialog">Self destruct</button></p>

themes/base/jquery.ui.dialog.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@
2424
.ui-dialog .ui-dialog-title {
2525
float: left;
2626
margin: .1em 16px .1em 0;
27+
white-space: nowrap;
28+
width: 90%;
29+
overflow: hidden;
30+
text-overflow: ellipsis;
2731
}
2832
.ui-dialog .ui-dialog-titlebar-close {
2933
position: absolute;

0 commit comments

Comments
 (0)
0