window: fix bringToTop()

This commit is contained in:
Raphael Coeffic
2022-06-11 15:13:11 +02:00
committed by Raphael Coeffic
parent 0d69b7a391
commit bcc30638a9
2 changed files with 7 additions and 4 deletions
+6
View File
@@ -567,6 +567,12 @@ coord_t Window::getSnapStep(coord_t relativeScrollPosition, coord_t pageSize)
} }
#endif #endif
void Window::bringToTop()
{
attach(parent); // does a detach + attach
if (lvobj) lv_obj_move_foreground(lvobj);
}
void lvglPushEncoderEvent(event_t& evt); void lvglPushEncoderEvent(event_t& evt);
void Window::checkEvents() void Window::checkEvents()
{ {
+1 -4
View File
@@ -229,10 +229,7 @@ class Window
invalidate({0, 0, rect.w, rect.h}); invalidate({0, 0, rect.w, rect.h});
} }
void bringToTop() void bringToTop();
{
attach(parent); // does a detach + attach
}
virtual void checkEvents(); virtual void checkEvents();