lokdialog: Don't show the title bar when no title was provided.
Change-Id: If08dc81e88d35a924d10695a38b138f6403e58bd Reviewed-on: https://gerrit.libreoffice.org/51955 Reviewed-by: Jan Holesovsky <kendy@collabora.com> Tested-by: Jan Holesovsky <kendy@collabora.com>
This commit is contained in:
parent
a35def2f74
commit
32eff8dd6b
2 changed files with 9 additions and 1 deletions
|
@ -347,6 +347,10 @@ body {
|
||||||
text-indent: 1px;
|
text-indent: 1px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.lokdialog_container.lokdialog_notitle .ui-dialog-titlebar {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
.lokdialog_container.ui-dialog.ui-widget-content {
|
.lokdialog_container.ui-dialog.ui-widget-content {
|
||||||
padding: 0px;
|
padding: 0px;
|
||||||
overflow: visible;
|
overflow: visible;
|
||||||
|
|
|
@ -246,6 +246,10 @@ L.Control.LokDialog = L.Control.extend({
|
||||||
|
|
||||||
L.DomEvent.on(dialogCanvas, 'contextmenu', L.DomEvent.preventDefault);
|
L.DomEvent.on(dialogCanvas, 'contextmenu', L.DomEvent.preventDefault);
|
||||||
|
|
||||||
|
var dialogClass = 'lokdialog_container';
|
||||||
|
if (!title)
|
||||||
|
dialogClass += ' lokdialog_notitle';
|
||||||
|
|
||||||
var that = this;
|
var that = this;
|
||||||
$(dialogContainer).dialog({
|
$(dialogContainer).dialog({
|
||||||
minWidth: width,
|
minWidth: width,
|
||||||
|
@ -254,7 +258,7 @@ L.Control.LokDialog = L.Control.extend({
|
||||||
modal: false,
|
modal: false,
|
||||||
closeOnEscape: true,
|
closeOnEscape: true,
|
||||||
resizable: false,
|
resizable: false,
|
||||||
dialogClass: 'lokdialog_container',
|
dialogClass: dialogClass,
|
||||||
close: function() {
|
close: function() {
|
||||||
that._onDialogClose(that._toRawDlgId(strDlgId), true);
|
that._onDialogClose(that._toRawDlgId(strDlgId), true);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue