Commit graph

14 commits

Author SHA1 Message Date
23rd
e2304a3c76 Added ability to set pinned items for vertical layout reorder. 2022-05-30 14:08:22 +03:00
John Preston
aa155db0bd Fix possible use-after-free in VerticalLayout.
If some row widgets of VerticalLayout are living
in its own lifetime() we have a use-after-free.

Because this lifetime() destroys this child row
already after ~VerticalLayout which can call back
into VerticalLayout::childHeightUpdated (the subscription
lives inside the same lifetime() as well) which
will access _rows member that was already destroyed.

Now all subscriptions die before _rows are destroyed.
2022-04-14 16:54:51 +04:00
John Preston
6316443b27 Allow SlideWrap to slide up, not only down. 2022-02-22 15:48:51 +03:00
23rd
dbbec068a8 Added ability to use VerticalLayoutReorder without scroll. 2022-02-01 17:01:56 +03:00
John Preston
e62d92f655 Use base::SafeRound. 2021-09-27 12:12:54 +04:00
23rd
9c552215ab Added ability to pass animation type to SlideWrap. 2021-07-13 21:31:19 +03:00
23rd
23009b62ad Added ability to finish reordering in vertical layout from external. 2020-03-28 18:51:00 +03:00
23rd
d1619b728e Added ability to scroll vertical layout during reordering. 2020-03-28 18:51:00 +03:00
23rd
adcc2f28a5 Fixed vertical layout's item position when it doesn't require animation. 2020-03-22 18:37:09 +03:00
John Preston
eaab3f9a8a Implement animated VerticalLayout reordering. 2020-03-20 16:33:29 +04:00
John Preston
b051948e69 Allow reordering widgets in Ui::VerticalLayout. 2020-03-20 15:39:09 +04:00
John Preston
20b37f2dc1 Fix nested wrapped widgets. 2020-01-13 13:04:37 +03:00
John Preston
187df62e9d Support nice Ui::Window under macOS. 2019-09-26 09:53:57 +03:00
John Preston
85c83003ca Initial commit. 2019-09-17 17:48:58 +03:00