Fix issue with scaling chart renders
This commit is contained in:
@@ -182,8 +182,11 @@ namespace LeafWeb.WebCms.Controllers
|
|||||||
var currentRow = 0;
|
var currentRow = 0;
|
||||||
foreach (var image in bitmaps)
|
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;
|
currentCol = (currentCol + 1)%columnCount;
|
||||||
currentRow += currentCol == 0 ? 1 : 0;
|
currentRow += currentCol == 0 ? 1 : 0;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user