Actions
Bug #1726
closedWPdfRenderer: incorrect table layout when using colspan
Start date:
02/28/2013
Due date:
% Done:
0%
Estimated time:
Description
When I render the following HTML using WPdfRenderer:
Title
Item
Description
Quantity
The resulting table's first row is not correctly centered (see attachment "screenshot of WPdfRenderer output"). I would expect it to look the way it does in a browser (see "screenshot of browser rendering").
Files
Updated by Koen Deforche over 11 years ago
- Status changed from New to InProgress
- Assignee set to Koen Deforche
- Target version set to 3.3.0
Updated by Koen Deforche over 11 years ago
- Status changed from InProgress to Resolved
Oops :
diff --git a/src/Wt/Render/Block.C b/src/Wt/Render/Block.C
index b753157..6c1e60a 100644
--- a/src/Wt/Render/Block.C
+++ b/src/Wt/Render/Block.C
@@ -1113,7 +1113,7 @@ void Block::tableRowDoLayout(double x, PageState &ps,
double width = 0;
for (unsigned j = col; j < col + colSpan; ++j)
- width += widths[col];
+ width += widths[j];
width += (colSpan - 1) * cellSpacing;
I guess we were testing this with equal sized columns ? :-)
Regards,
koen
Updated by Koen Deforche over 11 years ago
- Status changed from Resolved to Closed
Actions