Commit 1af9ac1e authored by Boris Kocherov's avatar Boris Kocherov Committed by Romain Courteaud

[erp5_only_office] make size of dialog window relative from parent

thx @romain
parent f2b969c6
......@@ -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";
......
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