dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #10114
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 2767: (GIS) Form layout fix.
Merge authors:
Jan Henrik Øverland (janhenrik-overland)
------------------------------------------------------------
revno: 2767 [merge]
committer: Jan Henrik Overland <janhenrik.overland@xxxxxxxxx>
branch nick: dhis2
timestamp: Thu 2011-01-27 11:17:54 +0100
message:
(GIS) Form layout fix.
modified:
dhis-2/dhis-web/dhis-web-mapping/src/main/webapp/dhis-web-mapping/mapping/script/global.js
dhis-2/dhis-web/dhis-web-mapping/src/main/webapp/dhis-web-mapping/mapping/script/index.js
--
lp:dhis2
https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk
Your team DHIS 2 developers is subscribed to branch lp:dhis2.
To unsubscribe from this branch go to https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk/+edit-subscription
=== modified file 'dhis-2/dhis-web/dhis-web-mapping/src/main/webapp/dhis-web-mapping/mapping/script/global.js'
--- dhis-2/dhis-web/dhis-web-mapping/src/main/webapp/dhis-web-mapping/mapping/script/global.js 2011-01-26 00:07:38 +0000
+++ dhis-2/dhis-web/dhis-web-mapping/src/main/webapp/dhis-web-mapping/mapping/script/global.js 2011-01-27 10:16:44 +0000
@@ -19,11 +19,11 @@
// Layout
west_width: 270,
- gridpanel_width: 270 - 15,
multiselect_width: 219,
+ label_width: 85,
combo_width: 150,
- combo_width_fieldset: 112,
- combo_list_width_fieldset: 112 + 17,
+ combo_width_fieldset: 127,
+ combo_list_width_fieldset: 127 + 17,
combo_number_width: 65,
combo_number_width_small: 40,
window_width: 251,
=== modified file 'dhis-2/dhis-web/dhis-web-mapping/src/main/webapp/dhis-web-mapping/mapping/script/index.js'
--- dhis-2/dhis-web/dhis-web-mapping/src/main/webapp/dhis-web-mapping/mapping/script/index.js 2011-01-26 11:42:12 +0000
+++ dhis-2/dhis-web/dhis-web-mapping/src/main/webapp/dhis-web-mapping/mapping/script/index.js 2011-01-27 10:16:44 +0000
@@ -419,11 +419,12 @@
layout: 'fit',
closeAction: 'hide',
width: G.conf.window_width,
- height: 207,
+ height: 205,
items: [
{
xtype: 'form',
bodyStyle: 'padding:8px',
+ labelWidth: G.conf.label_width,
items: [
{html: '<div class="window-info">Register current map as a favorite</div>'},
{
@@ -596,7 +597,7 @@
]
});
- /* Section: export map */
+ /* Section: export map */
var exportImageWindow = new Ext.Window({
id: 'exportimage_w',
title: '<span id="window-image-title">Image export</span>',
@@ -608,6 +609,7 @@
{
xtype: 'form',
bodyStyle: 'padding:8px',
+ labelWidth: G.conf.label_width,
items: [
{html: '<div class="window-info">Export thematic map to PNG</div>'},
{
@@ -681,7 +683,7 @@
{
xtype: 'checkbox',
id: 'exportimageincludelegend_chb',
- fieldLabel: G.i18n.include_legend,
+ fieldLabel: G.i18n.legend,
labelSeparator: '',
isFormField: true,
checked: true
@@ -811,6 +813,7 @@
{
xtype: 'form',
bodyStyle: 'padding: 8px 8px 5px 8px',
+ labelWidth: G.conf.label_width,
items: [
{html: '<div class="window-info">Register new legend</div>'},
{
@@ -869,7 +872,7 @@
]
},
{
- xtypes: 'form',
+ xtype: 'form',
items: [
{
xtype: 'toolbar',
@@ -969,6 +972,7 @@
{
xtype: 'form',
bodyStyle: 'padding: 8px 8px 5px 8px',
+ labelWidth: G.conf.label_width,
items: [
{html: '<div class="window-info">Register new legend set</div>'},
{
@@ -1136,6 +1140,7 @@
{
xtype: 'form',
bodyStyle: 'padding: 8px 8px 5px 8px',
+ labelWidth: G.conf.label_width,
items: [
{html: '<div class="window-info">Assign indicators to legend set</div>'},
{
@@ -1261,6 +1266,7 @@
{
xtype: 'form',
bodyStyle: 'padding: 8px 8px 5px 8px',
+ labelWidth: G.conf.label_width,
items: [
{html: '<div class="window-info">Assign data elements to legend set</div>'},
{
@@ -1492,6 +1498,7 @@
{
xtype: 'form',
bodyStyle: 'padding:8px',
+ labelWidth: G.conf.label_width,
items: [
{html: '<div class="window-info">Register new overlay</div>'},
{
@@ -1843,6 +1850,7 @@
xtype: 'form',
title: 'Date type',
bodyStyle: 'padding:8px',
+ labelWidth: G.conf.label_width,
items: [
{html: '<div class="window-info">Set thematic map date type</div>'},
{
@@ -2049,6 +2057,7 @@
{
xtype: 'form',
bodyStyle:'padding:8px',
+ labelWidth: G.conf.label_width,
items: [
{html: '<div class="window-info">Locate an organisation unit in the map</div>'},
{
@@ -2239,7 +2248,7 @@
title: '<span class="panel-title">' + G.i18n.polygon_layer + '</span>',
featureSelection: false,
legendDiv: 'polygonlegend',
- defaults: {width: 130},
+ defaults: {width: 130},
listeners: {
'expand': function() {
G.vars.activePanel.setPolygon();