[Commits] r2075 - sandbox/mapgears/geoext.ux/ux/WMSBrowser/lib/GeoExt.ux/widgets

commits at geoext.org commits at geoext.org
Wed Apr 7 21:02:53 CEST 2010


Author: adube
Date: 2010-04-07 21:02:53 +0200 (Wed, 07 Apr 2010)
New Revision: 2075

Modified:
   sandbox/mapgears/geoext.ux/ux/WMSBrowser/lib/GeoExt.ux/widgets/WMSBrowser.js
Log:
wmsbrowser - layout changed, login-pass removed

Modified: sandbox/mapgears/geoext.ux/ux/WMSBrowser/lib/GeoExt.ux/widgets/WMSBrowser.js
===================================================================
--- sandbox/mapgears/geoext.ux/ux/WMSBrowser/lib/GeoExt.ux/widgets/WMSBrowser.js	2010-04-07 09:59:38 UTC (rev 2074)
+++ sandbox/mapgears/geoext.ux/ux/WMSBrowser/lib/GeoExt.ux/widgets/WMSBrowser.js	2010-04-07 19:02:53 UTC (rev 2075)
@@ -22,7 +22,7 @@
  */
 GeoExt.ux.WMSBrowser = Ext.extend(Ext.Panel, {
 
-    layout: 'fit',
+    layout: 'absolute',
 
     minWidth: 300,
 
@@ -86,15 +86,14 @@
 
         // Top panel
         oTopPanel = {
-            style:'padding:0px;margin:0px;',
+            style:'padding:2px;margin:2px;',
             region: 'north',
             id: "wms_field_group",
             xtype: 'fieldset',
             layout: 'form',
             border: false,
             collapsible: false,
-            autoHeight: true,
-            autoWidth: true,
+	    anchor: '100%',
             defaults: {width: '100%'},
             defaultType: 'textfield',
             buttonAlign:'center',
@@ -106,8 +105,8 @@
         var oURLField;
         if(this.serverStore) {
             oURLField = {
+            style:'padding:0px;margin:0px;',
                 columnWidth: 0.85,
-                layout: 'fit',
                 'name': 'wms_url',
                 'id': 'wms_url',
                 xtype: 'combo',
@@ -125,6 +124,7 @@
             };
         } else {
             oURLField = {
+            style:'padding:0px;margin:0px;',
                 xtype: "textfield",
                 columnWidth: 0.85,
                 layout: 'fit',
@@ -140,21 +140,22 @@
 
         // Top panel - URL and Connect
         oTopPanel.items.push({
-            style:'padding:2px;margin:2px;',
+            style:'padding:0px;margin:0px;',
             xtype: 'fieldset',
             layout: 'column',
             border: false,
             collapsible: false,
             collapsed: false,
-            autoHeight: true,
-            autoWidth: true,
             items: [
                 oURLField,
                 {
+                    style:'padding:0px;margin:0px;',
                     columnWidth: 0.15,
-                    layout: 'fit',
                     border: false,
                     items: [{
+			width: 'auto',
+ 			autoWidth: 'true',
+                        style:'padding:0px;margin:0px;',
                         xtype: 'button',
                         text:  OpenLayers.i18n('Connect'),
                         scope: this,
@@ -166,6 +167,8 @@
 
 
         // Top panel - Username and Password
+	// currenty not used at all...
+	/*
         oTopPanel.items.push({
             style:'padding:10px;margin:2px;',
             xtype: 'fieldset',
@@ -188,21 +191,21 @@
                 fieldLabel: OpenLayers.i18n('Password')
             }]
         });
+        */
         oItems.push(oTopPanel);
 
-
         // Center Panel
         oCenterPanel = {
-          xtype: 'form',
+            style:'padding:2px;margin:2px;',
+	    x: 0,
+	    y: 25,
+            xtype: 'form',
             region: 'center',
             id: "wms_capabilities_panel",
             layout: 'column',
             border: false,
             collapsible: false,
-            autoHeight: true,
-            autoWidth: true,
-            width: 'auto',
-            height: 'auto',
+            anchor: '100% 100%',
             defaults: {width: '100%', hideLabel: true},
             defaultType: 'textfield',
             buttonAlign:'center',
@@ -309,8 +312,6 @@
             autoExpandColumn: "title",
             width: 'auto',
             autoWidth: true,
-            //height: 'auto',
-            //autoHeight: true,
             listeners: {
                 rowdblclick: this.mapPreview
             }
@@ -322,10 +323,13 @@
     },
 
     createFormPanel: function() {
+        var nDescHeight = parseInt(this.gridPanelOptions['height']) - 115;
+
         var options = {
             style:'padding:0px;margin:0px;',
             columnWidth: 0.5,
             xtype: 'fieldset',
+            //layout: 'anchor',
             labelWidth: 80,
             defaults: {width: '100%', border:false, readOnly: true},
             defaultType: 'textfield',
@@ -376,7 +380,7 @@
                 xtype: 'textarea',
                 fieldLabel: OpenLayers.i18n('Description'),
                 name: 'abstract',
-                anchor: '100% -75'
+	        height: nDescHeight	
             }]
         };
 



More information about the Commits mailing list