Commit f23928fd authored by Boris Kocherov's avatar Boris Kocherov

[erp5_only_office] make size of dialog window relative from parent

thx @romain
parent a46f25ba
...@@ -8,8 +8,8 @@ define([ ...@@ -8,8 +8,8 @@ define([
var _options = {}; var _options = {};
_.extend(_options, { _.extend(_options, {
title: this.textTitle, title: this.textTitle,
width: 1024, width: Common.Utils.innerWidth() - 40,
height: 621, height: Common.Utils.innerHeight() - 40,
header: true header: true
}, options); }, options);
...@@ -44,7 +44,7 @@ define([ ...@@ -44,7 +44,7 @@ define([
me.gadget = sub_gadget; me.gadget = sub_gadget;
var iframe = sub_gadget.element.querySelector("iframe"); var iframe = sub_gadget.element.querySelector("iframe");
iframe.width = '100%'; iframe.width = '100%';
iframe.height = "585px"; iframe.height = (Common.Utils.innerHeight() - 80) + 'px';
iframe.setAttribute("frameBorder","0"); iframe.setAttribute("frameBorder","0");
// iframe.style = "border: none;"; // iframe.style = "border: none;";
// iframe.align = "top"; // iframe.align = "top";
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment