fix example program repainting

This commit is contained in:
hippoz 2022-10-18 23:32:05 +03:00
parent f0acf9522d
commit c3a5cce4f9
No known key found for this signature in database
GPG key ID: 7C52899193467641

View file

@ -43,7 +43,6 @@ int main() {
auto control_row = content->add<Raven::Widget>();
control_row->set_style(&Raven::raised_widget_style);
//control_row->rect().set_min_height(28.0);
auto control_row_layout = control_row->set_layout<Raven::BoxLayout>(Raven::Direction::Horizontal);
control_row_layout->set_spacing(6.0);
control_row_layout->set_justify_secondary_dimension(true);
@ -59,7 +58,6 @@ int main() {
auto edit_row = content->add<Raven::Widget>();
edit_row->set_style(&Raven::raised_widget_style);
//edit_row->rect().set_min_height(28.0);
auto edit_row_layout = edit_row->set_layout<Raven::BoxLayout>(Raven::Direction::Horizontal);
edit_row_layout->set_spacing(6.0);
edit_row_layout->set_justify_secondary_dimension(true);
@ -81,6 +79,7 @@ int main() {
delete_button->on_click = [list_view]() {
list_view->elements.erase(list_view->elements.begin() + list_view->active_element());
list_view->set_active_element(list_view->active_element() - 1);
list_view->elements_updated();
};
next_button->on_click = [list_view]() {