mirror of
https://github.com/ONLYOFFICE/web-apps.git
synced 2026-07-24 06:51:23 +08:00
[Plugins] Fix style for transparent plugin window
This commit is contained in:
@ -704,7 +704,7 @@ define([
|
||||
var renderto = this.initConfig.renderTo || document.body;
|
||||
|
||||
$(renderto).append(
|
||||
_.template(this.initConfig.transparent ? templateTransparent : template)(this.initConfig)
|
||||
_.template(template)(this.initConfig)
|
||||
);
|
||||
|
||||
this.$window = $('#' + this.initConfig.id);
|
||||
|
||||
@ -1187,7 +1187,7 @@ define([
|
||||
|
||||
var help = variation.help;
|
||||
me.customPluginsDlg[frameId] = new Common.Views.PluginDlg({
|
||||
cls: isCustomWindow ? 'plain' : '',
|
||||
cls: (isCustomWindow ? 'plain' : '') + (variation.transparent ? ' ' + 'no-background' : ''),
|
||||
header: !isCustomWindow,
|
||||
title: description,
|
||||
width: size[0], // inner width
|
||||
@ -1200,8 +1200,7 @@ define([
|
||||
},
|
||||
help: !!help,
|
||||
isCanDocked: variation.isCanDocked,
|
||||
modal: isModal!==undefined ? isModal : true,
|
||||
transparent: variation.transparent || false
|
||||
modal: isModal!==undefined ? isModal : true
|
||||
});
|
||||
me.customPluginsDlg[frameId].on({
|
||||
'render:after': function(obj){
|
||||
|
||||
@ -326,6 +326,12 @@
|
||||
}
|
||||
}
|
||||
|
||||
&.no-background {
|
||||
&, .body {
|
||||
background:transparent;
|
||||
}
|
||||
}
|
||||
|
||||
.resize-border {
|
||||
position: absolute;
|
||||
width: 5px;
|
||||
|
||||
Reference in New Issue
Block a user