dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #10082
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 2753: Reverted the temporary fixed in r 2695
------------------------------------------------------------
revno: 2753
committer: Lars Helge Overland <larshelge@xxxxxxxxx>
branch nick: dhis2
timestamp: Tue 2011-01-25 22:27:17 +0100
message:
Reverted the temporary fixed in r 2695
modified:
dhis-2/dhis-api/src/main/java/org/hisp/dhis/common/Grid.java
dhis-2/dhis-web/dhis-web-commons/src/main/java/org/hisp/dhis/commons/action/GetDataElementGroupsAction.java
dhis-2/dhis-web/dhis-web-commons/src/main/java/org/hisp/dhis/commons/action/GetExpressionTextAction.java
dhis-2/dhis-web/dhis-web-commons/src/main/java/org/hisp/dhis/result/GridPdfResult.java
--
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-api/src/main/java/org/hisp/dhis/common/Grid.java'
--- dhis-2/dhis-api/src/main/java/org/hisp/dhis/common/Grid.java 2011-01-21 06:58:41 +0000
+++ dhis-2/dhis-api/src/main/java/org/hisp/dhis/common/Grid.java 2011-01-25 21:27:17 +0000
@@ -95,7 +95,7 @@
int getVisibleWidth();
/**
- * Adds a new row to the grid and moves the cursor accordingly.
+ * Adds a new row the the grid and moves the cursor accordingly.
*/
Grid nextRow();
=== modified file 'dhis-2/dhis-web/dhis-web-commons/src/main/java/org/hisp/dhis/commons/action/GetDataElementGroupsAction.java'
--- dhis-2/dhis-web/dhis-web-commons/src/main/java/org/hisp/dhis/commons/action/GetDataElementGroupsAction.java 2011-01-21 06:58:41 +0000
+++ dhis-2/dhis-web/dhis-web-commons/src/main/java/org/hisp/dhis/commons/action/GetDataElementGroupsAction.java 2011-01-25 21:27:17 +0000
@@ -44,6 +44,8 @@
public class GetDataElementGroupsAction
implements Action
{
+
+
// -------------------------------------------------------------------------
// Dependencies
// -------------------------------------------------------------------------
=== modified file 'dhis-2/dhis-web/dhis-web-commons/src/main/java/org/hisp/dhis/commons/action/GetExpressionTextAction.java'
--- dhis-2/dhis-web/dhis-web-commons/src/main/java/org/hisp/dhis/commons/action/GetExpressionTextAction.java 2011-01-21 06:58:41 +0000
+++ dhis-2/dhis-web/dhis-web-commons/src/main/java/org/hisp/dhis/commons/action/GetExpressionTextAction.java 2011-01-25 21:27:17 +0000
@@ -93,5 +93,7 @@
return ERROR;
}
+
}
+
}
=== modified file 'dhis-2/dhis-web/dhis-web-commons/src/main/java/org/hisp/dhis/result/GridPdfResult.java'
--- dhis-2/dhis-web/dhis-web-commons/src/main/java/org/hisp/dhis/result/GridPdfResult.java 2011-01-21 06:58:41 +0000
+++ dhis-2/dhis-web/dhis-web-commons/src/main/java/org/hisp/dhis/result/GridPdfResult.java 2011-01-25 21:27:17 +0000
@@ -80,8 +80,6 @@
Grid _grid = (Grid) invocation.getStack().findValue( "grid" );
grid = _grid != null ? _grid : grid;
-
- int width = grid.getVisibleWidth() == 0 ? 1 : grid.getVisibleWidth();
// ---------------------------------------------------------------------
// Configure response
@@ -101,21 +99,21 @@
Document document = openDocument( out );
- PdfPTable table = new PdfPTable( width );
+ PdfPTable table = new PdfPTable( grid.getVisibleWidth() );
table.setHeaderRows( 1 );
- table.addCell( getTitleCell( grid.getTitle(), width ) );
- table.addCell( getEmptyCell( width, 30 ) );
- table.addCell( getSubtitleCell( grid.getSubtitle(), width ) );
- table.addCell( getEmptyCell( width, 30 ) );
+ table.addCell( getTitleCell( grid.getTitle(), grid.getVisibleWidth() ) );
+ table.addCell( getEmptyCell( grid.getVisibleWidth(), 30 ) );
+ table.addCell( getSubtitleCell( grid.getSubtitle(), grid.getVisibleWidth() ) );
+ table.addCell( getEmptyCell( grid.getVisibleWidth(), 30 ) );
for ( GridHeader header : grid.getVisibleHeaders() )
{
table.addCell( getItalicCell( header.getName() ) );
}
- table.addCell( getEmptyCell( width, 10 ) );
+ table.addCell( getEmptyCell( grid.getVisibleWidth(), 10 ) );
for ( List<String> row : grid.getVisibleRows() )
{