Browse Source

Fix ActionRow remove and add item not using Item.width

pull/10440/head
Rapptz 3 months ago
parent
commit
85144ec5e4
  1. 4
      discord/ui/action_row.py

4
discord/ui/action_row.py

@ -274,7 +274,7 @@ class ActionRow(Item[V]):
item._update_view(self.view)
item._parent = self
self._weight += 1
self._weight += item.width
self._children.append(item)
return self
@ -298,7 +298,7 @@ class ActionRow(Item[V]):
else:
if self._view:
self._view._add_count(-1)
self._weight -= 1
self._weight -= item.width
return self

Loading…
Cancel
Save