Fix issue with scaling chart renders

This commit is contained in:
2020-01-16 10:24:34 -05:00
parent 046cda40b4
commit 4170398887
+5 -2
View File
@@ -182,8 +182,11 @@ namespace LeafWeb.WebCms.Controllers
var currentRow = 0;
foreach (var image in bitmaps)
{
g.DrawImage(image, currentCol * cellWidth, currentRow * cellHeight);
// https://stackoverflow.com/a/41189062/99492
g.DrawImage(image,
currentCol * cellWidth, currentRow * cellHeight,
cellWidth, cellHeight);
currentCol = (currentCol + 1)%columnCount;
currentRow += currentCol == 0 ? 1 : 0;
}