mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-02 22:55:23 +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:
@@ -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 };
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user