From: Michael M Slusarz Date: Tue, 30 Jun 2009 17:07:06 +0000 (-0600) Subject: Fix window sizing in popup message window X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=79a0b870819b70bbfc54e3371fc93e2cbefc597f;p=horde.git Fix window sizing in popup message window --- diff --git a/imp/js/src/fullmessage-dimp.js b/imp/js/src/fullmessage-dimp.js index 9d7956c81..58942b01c 100644 --- a/imp/js/src/fullmessage-dimp.js +++ b/imp/js/src/fullmessage-dimp.js @@ -144,6 +144,13 @@ var DimpFullmessage = { DimpCore.DMenu.addElement(bid + '_img', 'ctx_' + ctx, { offset: bidelt.up(), left: true }); }, + resizeWindow: function() + { + var mb = $('msgData').down('DIV.msgBody'); + + mb.setStyle({ height: (document.viewport.getHeight() - mb.cumulativeOffset()[1] - parseInt(mb.getStyle('paddingTop'), 10) - parseInt(mb.getStyle('paddingBottom'), 10)) + 'px' }); + }, + onDomLoad: function() { DimpCore.growler_log = false; @@ -168,6 +175,8 @@ var DimpFullmessage = { $('msgLogInfo').show(); DimpCore.updateMsgLog(this.log); } + + this.resizeWindow(); } }; @@ -180,3 +189,4 @@ DimpCore.clickHandler = DimpCore.clickHandler.wrap(DimpFullmessage.clickHandler. /* Attach event handlers. */ document.observe('dom:loaded', DimpFullmessage.onDomLoad.bind(DimpFullmessage)); +Event.observe(window, 'resize', DimpFullmessage.resizeWindow.bind(DimpFullmessage)); diff --git a/imp/themes/screen-dimp.css b/imp/themes/screen-dimp.css index a7553f563..abd9f0aa5 100644 --- a/imp/themes/screen-dimp.css +++ b/imp/themes/screen-dimp.css @@ -597,6 +597,7 @@ div.dimpActionsCompose, div.dimpActionsMsg { .msgBody { background: #fff url("graphics/backhead_shadow.png") top repeat-x; padding: 7px 5px 5px; + overflow-y: auto; } .msgBody table td { padding: 0;