fix example program repainting
This commit is contained in:
parent
f0acf9522d
commit
c3a5cce4f9
1 changed files with 1 additions and 2 deletions
|
@ -43,7 +43,6 @@ int main() {
|
||||||
|
|
||||||
auto control_row = content->add<Raven::Widget>();
|
auto control_row = content->add<Raven::Widget>();
|
||||||
control_row->set_style(&Raven::raised_widget_style);
|
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);
|
auto control_row_layout = control_row->set_layout<Raven::BoxLayout>(Raven::Direction::Horizontal);
|
||||||
control_row_layout->set_spacing(6.0);
|
control_row_layout->set_spacing(6.0);
|
||||||
control_row_layout->set_justify_secondary_dimension(true);
|
control_row_layout->set_justify_secondary_dimension(true);
|
||||||
|
@ -59,7 +58,6 @@ int main() {
|
||||||
|
|
||||||
auto edit_row = content->add<Raven::Widget>();
|
auto edit_row = content->add<Raven::Widget>();
|
||||||
edit_row->set_style(&Raven::raised_widget_style);
|
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);
|
auto edit_row_layout = edit_row->set_layout<Raven::BoxLayout>(Raven::Direction::Horizontal);
|
||||||
edit_row_layout->set_spacing(6.0);
|
edit_row_layout->set_spacing(6.0);
|
||||||
edit_row_layout->set_justify_secondary_dimension(true);
|
edit_row_layout->set_justify_secondary_dimension(true);
|
||||||
|
@ -81,6 +79,7 @@ int main() {
|
||||||
delete_button->on_click = [list_view]() {
|
delete_button->on_click = [list_view]() {
|
||||||
list_view->elements.erase(list_view->elements.begin() + list_view->active_element());
|
list_view->elements.erase(list_view->elements.begin() + list_view->active_element());
|
||||||
list_view->set_active_element(list_view->active_element() - 1);
|
list_view->set_active_element(list_view->active_element() - 1);
|
||||||
|
list_view->elements_updated();
|
||||||
};
|
};
|
||||||
|
|
||||||
next_button->on_click = [list_view]() {
|
next_button->on_click = [list_view]() {
|
||||||
|
|
Loading…
Reference in a new issue