1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-24 19:47:42 +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:
Zac 2020-11-03 22:27:05 +10:00 committed by Andreas Kling
parent 39a1c9d827
commit 85d65b06ab
4 changed files with 48 additions and 9 deletions

View file

@ -45,11 +45,18 @@ public:
const GUI::TextDocument& document() const;
int vertical_scroll_value() const;
void vertical_scroll_value(int);
int horizontal_scroll_value() const;
void horizontal_scroll_value(int);
private:
explicit ProjectFile(const String& name);
String m_name;
mutable RefPtr<CodeDocument> m_document;
int m_vertical_scroll_value{ 0 };
int m_horizontal_scroll_value{ 0 };
};
}