[pve-devel] r6184 - pve-manager/pve2/www/manager

svn-commits at proxmox.com svn-commits at proxmox.com
Mon Jun 27 12:34:50 CEST 2011


Author: dietmar
Date: 2011-06-27 12:34:49 +0200 (Mon, 27 Jun 2011)
New Revision: 6184

Modified:
   pve-manager/pve2/www/manager/VNCConsole.js
Log:
fix console height


Modified: pve-manager/pve2/www/manager/VNCConsole.js
===================================================================
--- pve-manager/pve2/www/manager/VNCConsole.js	2011-06-27 10:07:39 UTC (rev 6183)
+++ pve-manager/pve2/www/manager/VNCConsole.js	2011-06-27 10:34:49 UTC (rev 6184)
@@ -47,7 +47,8 @@
 	    if (!(applet && Ext.isFunction(applet.getPreferredSize))) 
 		return Ext.Function.defer(resize_window, 1000);
 
-	    var tbh = me.tbar ? me.tbar.getHeight() : 0;
+	    var tbar = me.getDockedItems("[dock=top]")[0];
+	    var tbh = tbar ? tbar.getHeight() : 0;
 	    var ps = applet.getPreferredSize();
 	    var aw = ps.width;
 	    var ah = ps.height;




More information about the pve-devel mailing list