From 2094c3d31ebefad665b9eeed7b51d03f5210ee8c Mon Sep 17 00:00:00 2001 From: niksedk Date: Sun, 20 Sep 2015 10:01:43 +0200 Subject: [PATCH] and another fix for FAB vertical center --- src/Forms/ExportPngXml.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Forms/ExportPngXml.cs b/src/Forms/ExportPngXml.cs index 8717fa563..bf3ff1092 100644 --- a/src/Forms/ExportPngXml.cs +++ b/src/Forms/ExportPngXml.cs @@ -1050,7 +1050,7 @@ $DROP=[DROPVALUE]" + Environment.NewLine + Environment.NewLine + if (param.Alignment == ContentAlignment.TopLeft || param.Alignment == ContentAlignment.TopCenter || param.Alignment == ContentAlignment.TopRight) top = param.BottomMargin; if (param.Alignment == ContentAlignment.MiddleLeft || param.Alignment == ContentAlignment.MiddleCenter || param.Alignment == ContentAlignment.MiddleRight) - top = param.ScreenHeight - (param.Bitmap.Height / 2); + top = (param.ScreenHeight - param.Bitmap.Height) / 2; using (var g = Graphics.FromImage(fullSize)) {