jsdialog: handle drawingarea
Change-Id: Ia3bc01e76c71edc7ac59e3157e7de5700397c21d Reviewed-on: https://gerrit.libreoffice.org/c/online/+/93466 Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com> Reviewed-by: Szymon Kłos <szymon.klos@collabora.com>
This commit is contained in:
parent
361edbbf6d
commit
bda6903dea
2 changed files with 15 additions and 0 deletions
|
@ -856,3 +856,8 @@ input[type=checkbox][disabled] {
|
||||||
#criteria.ui-tab, #inputhelp.ui-tab {
|
#criteria.ui-tab, #inputhelp.ui-tab {
|
||||||
width: 30% !important;
|
width: 30% !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.mobile-wizard.ui-drawing-area {
|
||||||
|
margin: 10px 5% 10px 5% !important;
|
||||||
|
width: 90%;
|
||||||
|
}
|
||||||
|
|
|
@ -152,6 +152,7 @@ L.Control.JSDialogBuilder = L.Control.extend({
|
||||||
this._controlHandlers['colorlistbox'] = this._colorControl;
|
this._controlHandlers['colorlistbox'] = this._colorControl;
|
||||||
this._controlHandlers['borderstyle'] = this._borderControl;
|
this._controlHandlers['borderstyle'] = this._borderControl;
|
||||||
this._controlHandlers['treelistbox'] = this._listboxControl;
|
this._controlHandlers['treelistbox'] = this._listboxControl;
|
||||||
|
this._controlHandlers['drawingarea'] = this._drawingAreaControl;
|
||||||
|
|
||||||
this._controlHandlers['mainmenu'] = this._containerHandler;
|
this._controlHandlers['mainmenu'] = this._containerHandler;
|
||||||
this._controlHandlers['submenu'] = this._subMenuHandler;
|
this._controlHandlers['submenu'] = this._subMenuHandler;
|
||||||
|
@ -1478,6 +1479,15 @@ L.Control.JSDialogBuilder = L.Control.extend({
|
||||||
return false;
|
return false;
|
||||||
},
|
},
|
||||||
|
|
||||||
|
_drawingAreaControl: function(parentContainer, data, builder) {
|
||||||
|
if (data.image) {
|
||||||
|
var image = L.DomUtil.create('img', builder.options.cssClass + ' ui-drawing-area', parentContainer);
|
||||||
|
image.src = data.image.replace('\\', '');
|
||||||
|
image.id = data.id;
|
||||||
|
}
|
||||||
|
return false;
|
||||||
|
},
|
||||||
|
|
||||||
_htmlControl: function(parentContainer, data, builder) {
|
_htmlControl: function(parentContainer, data, builder) {
|
||||||
var container = L.DomUtil.create('div', builder.options.cssClass, parentContainer);
|
var container = L.DomUtil.create('div', builder.options.cssClass, parentContainer);
|
||||||
container.appendChild(data.content);
|
container.appendChild(data.content);
|
||||||
|
|
Loading…
Reference in a new issue