mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 06:18:14 +00:00
LibGUI: Move the editing widget along with the content when scrolling.
This commit is contained in:
parent
568f3125f3
commit
9cab7a0707
5 changed files with 21 additions and 1 deletions
|
@ -29,10 +29,13 @@ public:
|
|||
|
||||
protected:
|
||||
virtual void model_notification(const GModelNotification&);
|
||||
virtual void did_scroll() override;
|
||||
void update_edit_widget_position();
|
||||
|
||||
bool m_editable { false };
|
||||
GModelIndex m_edit_index;
|
||||
GTextBox* m_edit_widget { nullptr };
|
||||
Rect m_edit_widget_content_rect;
|
||||
|
||||
private:
|
||||
RetainPtr<GModel> m_model;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue