PageCount Fix for ButtonGrid

- replace constant 3 with LayoutRows property
This commit is contained in:
FlorianDahn 2021-02-27 15:17:21 +01:00
parent 1a2b5818aa
commit 63deb978a4

View File

@ -556,7 +556,7 @@ namespace TelegramBotBase.Controls.Hybrid
if (bf.Rows == 0)
return 1;
return (int)Math.Ceiling((decimal)(bf.Rows / (decimal)(MaximumRow - 3)));
return (int)Math.Ceiling((decimal)(bf.Rows / (decimal)(MaximumRow - this.LayoutRows)));
}
}