mirror of
https://github.com/cyanfish/naps2.git
synced 2024-10-03 19:07:17 +03:00
WinForms: Fix ellipsized page numbers
This commit is contained in:
parent
67e17ee2cb
commit
5b3d5607e8
@ -147,6 +147,7 @@ public class WinFormsListView<T> : IListView<T> where T : notnull
|
||||
RectangleF labelRect = new(x1, y1, 0, textSize.Height);
|
||||
float maxLabelWidth = Math.Min(textSize.Width, e.Bounds.Width - 2 * tp);
|
||||
labelRect.Inflate(maxLabelWidth / 2, 0);
|
||||
labelRect.Width += 2;
|
||||
e.Graphics.DrawString(label, _view.Font, drawBrush, labelRect, PageNumberLabelFormat);
|
||||
|
||||
// Draw unselected border
|
||||
|
Loading…
Reference in New Issue
Block a user