|
|
|
@ -2,6 +2,7 @@ use crate::{
|
|
|
|
|
strutil::TString,
|
|
|
|
|
ui::{
|
|
|
|
|
component::{Child, Component, ComponentExt, Event, EventCtx, Pad, Paginate},
|
|
|
|
|
constant::SCREEN,
|
|
|
|
|
geometry::Rect,
|
|
|
|
|
},
|
|
|
|
|
};
|
|
|
|
@ -96,7 +97,6 @@ where
|
|
|
|
|
self.current_page = self.pages.get(self.page_counter);
|
|
|
|
|
if let Some(title) = self.current_page.title() {
|
|
|
|
|
self.title = Some(Title::new(title));
|
|
|
|
|
self.title.place(self.title_area);
|
|
|
|
|
} else {
|
|
|
|
|
self.title = None;
|
|
|
|
|
}
|
|
|
|
@ -106,6 +106,7 @@ where
|
|
|
|
|
self.scrollbar.mutate(ctx, |_ctx, scrollbar| {
|
|
|
|
|
scrollbar.change_page(scrollbar_active_index);
|
|
|
|
|
});
|
|
|
|
|
self.place(SCREEN);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// Placing current page, setting current buttons and clearing.
|
|
|
|
|