changeset 36:cfe8045c4610

moved the data-table out of the mainContainer again made the table moveable (to allow placement left/right of the map)
author Sebastian Kruse <skruse@mpiwg-berlin.mpg.de>
date Mon, 03 Dec 2012 15:26:56 +0100
parents 18fc3a30e993
children 7c9aa2fdfa43
files src/econnect/wp3_3/client/core/ApplicationGrid.java war/Sti.css war/Sti.html
diffstat 3 files changed, 21 insertions(+), 9 deletions(-) [+]
line wrap: on
line diff
--- a/src/econnect/wp3_3/client/core/ApplicationGrid.java	Mon Dec 03 13:40:15 2012 +0100
+++ b/src/econnect/wp3_3/client/core/ApplicationGrid.java	Mon Dec 03 15:26:56 2012 +0100
@@ -126,7 +126,7 @@
 		this.setCellPadding(0);
 		//this.getElement().getStyle().setPosition(Position.ABSOLUTE);
 		//this.getElement().getStyle().setPropertyPx("left", (docWidth-width)/2);
-		this.getElement().getStyle().setPropertyPx("top", 120-39);
+		//this.getElement().getStyle().setPropertyPx("top", 120-39);
 		//this.getElement().getStyle().setZIndex(1);
 		this.getCellFormatter().getElement(2,1).setClassName("cellStyleTop");
 		this.getCellFormatter().getElement(3,0).setClassName("cellStyleLeft");
@@ -565,7 +565,7 @@
 		core.setElements( this.getMap().getJsMap(), this.getPlot().getJsTimeplot() );
 		StiCore.exportStaticMethods(table,this,this.getPlot(),this.getMap());
 
-		table.setTop( 40 );
+		//table.setTop( 40 );
 		table.setWidth("100%");
 		
 		for( int i=0; i<kmlLabels.size(); i++ ){
@@ -580,9 +580,13 @@
 			}
 		}
 
+		RootPanel.get("tableWindow").add(table);
+		
+		/*
 		this.setWidget(4, 0, table);
 		this.getCellFormatter().getElement(4,0).setAttribute("colspan", "2");
 		this.getCellFormatter().getElement(4,1).removeFromParent();
+		*/
 	}
 	
 	public void setDefinedBounds(){
--- a/war/Sti.css	Mon Dec 03 13:40:15 2012 +0100
+++ b/war/Sti.css	Mon Dec 03 15:26:56 2012 +0100
@@ -531,11 +531,8 @@
 */
 
 #tableWindow {
-	position: absolute;
 	text-align: center;
-	width: 90%;
-	margin-left: 5%;
-	margin-right: 5%;
+	width: 100%;
 }
 
 .unselectedCellInner {
--- a/war/Sti.html	Mon Dec 03 13:40:15 2012 +0100
+++ b/war/Sti.html	Mon Dec 03 15:26:56 2012 +0100
@@ -58,9 +58,20 @@
       </div>
     </noscript>
 
-	<div id="mainContainer" align="center">
-	</div>	
+	<table>
+	
+	<tr>
+		<td valign="top">
+			<div id="mainContainer">
+			</div>	
+		</td>
 
-    
+		<td valign="top">
+			<div id="tableWindow" class="tableWindow">
+			</div>
+		</td>
+	</tr>
+
+	</table>
   </body>
 </html>