[icinga-checkins] icinga.org: icinga-web/jmosshammer/default: * Command window width (webkit)

git at icinga.org git at icinga.org
Tue Apr 13 17:49:36 CEST 2010


Module: icinga-web
Branch: jmosshammer/default
Commit: c482172c77d933d88f6e30d8890c6a4470fc7a2c
URL:    https://git.icinga.org/?p=icinga-web.git;a=commit;h=c482172c77d933d88f6e30d8890c6a4470fc7a2c

Author: Marius Hein <marius.hein at netways.de>
Date:   Tue Apr  6 17:26:29 2010 +0200

* Command window width (webkit)

---

 .../System/ViewProc/js/IcingaCommandHandler.js     |    7 +++++++
 doc/CHANGELOG                                      |    1 +
 2 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/app/modules/Cronks/templates/System/ViewProc/js/IcingaCommandHandler.js b/app/modules/Cronks/templates/System/ViewProc/js/IcingaCommandHandler.js
index c4ec565..5b87bd1 100644
--- a/app/modules/Cronks/templates/System/ViewProc/js/IcingaCommandHandler.js
+++ b/app/modules/Cronks/templates/System/ViewProc/js/IcingaCommandHandler.js
@@ -236,6 +236,7 @@ IcingaCommandHandler.prototype = {
 				var oWin = new Ext.Window({
 					title: String.format(_('{0} ({1} items)'), title, this.grid.getSelectionModel().getCount()),
 					autoDestroy: true,
+					autoHeight: true,
 					closable: true,
 					modal: true,
 					defaultType: 'field',
@@ -253,6 +254,12 @@ IcingaCommandHandler.prototype = {
 					}],
 				});
 				
+				// This fixes the webkit (safari, chrome) width issue ...
+				oWin.on('afterrender', function() {
+					this.syncSize();
+					this.syncShadow();
+				}, oWin, { delay: 40, single: true });
+				
 				var oForm = new Ext.form.FormPanel({
 					border: false,
 					bodyStyle: 'padding: 5px 5px 5px 5px',
diff --git a/doc/CHANGELOG b/doc/CHANGELOG
index 1c46953..c24e138 100755
--- a/doc/CHANGELOG
+++ b/doc/CHANGELOG
@@ -174,4 +174,5 @@
        * Merge with plugin architecture (rel #338)
        * Search object status (fixes #339)
        * Global icinga status js object
+       * Command window width (webkit)
        
\ No newline at end of file





More information about the icinga-checkins mailing list