window: fix bringToTop()
This commit is contained in:
committed by
Raphael Coeffic
parent
0d69b7a391
commit
bcc30638a9
@@ -567,6 +567,12 @@ coord_t Window::getSnapStep(coord_t relativeScrollPosition, coord_t pageSize)
|
||||
}
|
||||
#endif
|
||||
|
||||
void Window::bringToTop()
|
||||
{
|
||||
attach(parent); // does a detach + attach
|
||||
if (lvobj) lv_obj_move_foreground(lvobj);
|
||||
}
|
||||
|
||||
void lvglPushEncoderEvent(event_t& evt);
|
||||
void Window::checkEvents()
|
||||
{
|
||||
|
||||
+1
-4
@@ -229,10 +229,7 @@ class Window
|
||||
invalidate({0, 0, rect.w, rect.h});
|
||||
}
|
||||
|
||||
void bringToTop()
|
||||
{
|
||||
attach(parent); // does a detach + attach
|
||||
}
|
||||
void bringToTop();
|
||||
|
||||
virtual void checkEvents();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user