From 954faabcc60c17dfc78e97170fb05aaef7583237 Mon Sep 17 00:00:00 2001 From: cpa-openerp Date: Fri, 30 Mar 2012 14:11:08 +0530 Subject: [PATCH] [FIX] Fixed increase the height of dialog, the internal content height do not increase. bzr revid: cpa@tinyerp.com-20120330084108-p4pfjiv1huasm45q --- addons/web/static/src/js/chrome.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/addons/web/static/src/js/chrome.js b/addons/web/static/src/js/chrome.js index 6636d5ab73e..052e4085878 100644 --- a/addons/web/static/src/js/chrome.js +++ b/addons/web/static/src/js/chrome.js @@ -141,6 +141,11 @@ openerp.web.Dialog = openerp.web.OldWidget.extend(/** @lends openerp.web.Dialog# }, on_resized: function() { //openerp.log("Dialog resized to %d x %d", this.$element.width(), this.$element.height()); + var $dialog = this.$element.parent(".ui-dialog"); + var btnpane_height = $dialog.find(".ui-dialog-buttonpane").height(); + var content_height = ($dialog.height() - btnpane_height - 62) + "px"; + + this.$element.css({ 'max-height':content_height, 'height':content_height}); }, stop: function () { // Destroy widget