Commit f23928fd by Boris Kocherov

[erp5_only_office] make size of dialog window relative from parent

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