|
|
|
@ -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 |
|
|
|
|
|
|
|
|