mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-06 09:01:53 +00:00
HackStudio: Store and restore the scrollbar values of ProjectFiles when they are closed and reopened from the list of open files.
This commit is contained in:
parent
39a1c9d827
commit
85d65b06ab
Notes:
sideshowbarker
2024-07-19 01:34:35 +09:00
Author: https://github.com/supex0fan 🔰
Commit: 85d65b06ab
Pull-request: https://github.com/SerenityOS/serenity/pull/3935
4 changed files with 48 additions and 9 deletions
|
@ -51,4 +51,24 @@ const GUI::TextDocument& ProjectFile::document() const
|
|||
return *m_document;
|
||||
}
|
||||
|
||||
int ProjectFile::vertical_scroll_value() const
|
||||
{
|
||||
return m_vertical_scroll_value;
|
||||
}
|
||||
|
||||
void ProjectFile::vertical_scroll_value(int vertical_scroll_value)
|
||||
{
|
||||
m_vertical_scroll_value = vertical_scroll_value;
|
||||
}
|
||||
|
||||
int ProjectFile::horizontal_scroll_value() const
|
||||
{
|
||||
return m_horizontal_scroll_value;
|
||||
}
|
||||
|
||||
void ProjectFile::horizontal_scroll_value(int horizontal_scroll_value)
|
||||
{
|
||||
m_horizontal_scroll_value = horizontal_scroll_value;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue