← Back to team overview

dhis2-devs team mailing list archive

[Branch ~dhis2-devs-core/dhis2/trunk] Rev 489: (GIS) Organisation unit popup window re-positioned and resized.

 

------------------------------------------------------------
revno: 489
committer: Jan Henrik Overland janhenrik.overland@xxxxxxxxx
branch nick: trunk
timestamp: Fri 2009-08-21 02:45:04 +0200
message:
  (GIS) Organisation unit popup window re-positioned and resized.
modified:
  gis/dhis-web-mapping/src/main/webapp/mapping/geostat/geostat.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 'gis/dhis-web-mapping/src/main/webapp/mapping/geostat/geostat.js'
--- gis/dhis-web-mapping/src/main/webapp/mapping/geostat/geostat.js	2009-08-21 00:07:39 +0000
+++ gis/dhis-web-mapping/src/main/webapp/mapping/geostat/geostat.js	2009-08-21 00:45:04 +0000
@@ -1914,21 +1914,14 @@
 
 function onHoverSelectChoropleth(feature) {
     if (MAPDATA != null) {
-        var center_panel = Ext.getCmp('center');
-        var south_panel = Ext.getCmp('south-panel');
-
-        var height = 230;
-        var collapsed = 48;
-        var padding_x = 15;
-        var padding_y = 22;
-
-        var x = center_panel.x + padding_x;
-        var y = south_panel.y + collapsed - height  - padding_y;
+        var east_panel = Ext.getCmp('east');
+        var x = east_panel.x - 210;
+        var y = east_panel.y + 15;
 
         popup_feature = new Ext.Window({
             title: 'Organisation unit',
             width: 190,
-            height: height,
+            height: 84,
             layout: 'fit',
             plain: true,
             bodyStyle: 'padding:5px',