Fix labels, lists and other tweaks

This commit is contained in:
2026-01-24 02:21:56 +00:00
parent 5415c71e9e
commit 7830356f24
10 changed files with 100 additions and 27 deletions

View File

@@ -149,10 +149,12 @@ public class SkiaItemsView : SkiaView
/// <summary>
/// Gets the height for a specific item, using cached height or default.
/// Always returns at least ItemHeight to allow vertical centering of smaller content.
/// </summary>
protected float GetItemHeight(int index)
{
return _itemHeights.TryGetValue(index, out var height) ? height : _itemHeight;
var cached = _itemHeights.TryGetValue(index, out var height) ? height : _itemHeight;
return Math.Max(cached, _itemHeight);
}
/// <summary>