Fix ActionRow remove and add item not using Item.width

This commit is contained in:
Rapptz
2026-04-14 13:19:40 -04:00
parent f0195a5ffb
commit 85144ec5e4
+2 -2
View File
@@ -274,7 +274,7 @@ class ActionRow(Item[V]):
item._update_view(self.view) item._update_view(self.view)
item._parent = self item._parent = self
self._weight += 1 self._weight += item.width
self._children.append(item) self._children.append(item)
return self return self
@@ -298,7 +298,7 @@ class ActionRow(Item[V]):
else: else:
if self._view: if self._view:
self._view._add_count(-1) self._view._add_count(-1)
self._weight -= 1 self._weight -= item.width
return self return self