PageCount Fix for ButtonGrid
- replace constant 3 with LayoutRows property
This commit is contained in:
parent
1a2b5818aa
commit
63deb978a4
@ -556,7 +556,7 @@ namespace TelegramBotBase.Controls.Hybrid
|
|||||||
if (bf.Rows == 0)
|
if (bf.Rows == 0)
|
||||||
return 1;
|
return 1;
|
||||||
|
|
||||||
return (int)Math.Ceiling((decimal)(bf.Rows / (decimal)(MaximumRow - 3)));
|
return (int)Math.Ceiling((decimal)(bf.Rows / (decimal)(MaximumRow - this.LayoutRows)));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user