mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 04:07:44 +00:00
PDFViewer: Respect page navigation features in multi-page mode
This includes the text box and the page up/down arrows.
This commit is contained in:
parent
3ecb41b7d9
commit
baac720e13
5 changed files with 15 additions and 9 deletions
|
@ -155,6 +155,13 @@ void PDFViewer::paint_event(GUI::PaintEvent& event)
|
|||
}
|
||||
}
|
||||
|
||||
void PDFViewer::set_current_page(u32 current_page)
|
||||
{
|
||||
m_current_page_index = current_page;
|
||||
vertical_scrollbar().set_value(m_page_dimension_cache.render_info[current_page].total_height_before_this_page);
|
||||
update();
|
||||
}
|
||||
|
||||
void PDFViewer::resize_event(GUI::ResizeEvent&)
|
||||
{
|
||||
for (auto& map : m_rendered_page_list)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue