fix: View reordering on re-addition to same parent (#42085)

This commit is contained in:
Shelley Vohr 2024-05-10 10:16:33 +02:00 committed by GitHub
parent e2acdffe58
commit 3bd807b03e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 87 additions and 2 deletions

View file

@ -57,6 +57,8 @@ class View : public gin_helper::EventEmitter<View>, public views::ViewObserver {
void set_delete_view(bool should) { delete_view_ = should; }
private:
void ReorderChildView(gin::Handle<View> child, size_t index);
std::vector<v8::Global<v8::Object>> child_views_;
bool delete_view_ = true;