Fix width calculation in asset packs window (#22097)

This commit is contained in:
Aaron van Geffen authored and GitHub committed 2024-05-24 23:27:09 +02:00
1 parent f5834d67db
commit e8a009bb3c
1 file changed
+1 -1
+1 -1
View File
@@ -238,7 +238,7 @@ static Widget WindowAssetPacksWidgets[] = {
private:
void PaintItem(DrawPixelInfo& dpi, int32_t y, Formatter& ft, bool isChecked, bool isSelected, bool isHighlighted)
{
auto listWidth = dpi.width - 1;
auto listWidth = widgets[WIDX_LIST].right - widgets[WIDX_LIST].left;
auto stringId = STR_BLACK_STRING;
auto fillRectangle = ScreenRect{ { 0, y }, { listWidth, y + ItemHeight - 1 } };
if (isSelected)