mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 04:58:13 +00:00
GTextEditor: Expand the content "to-fill" for right aligned text.
When using a right-side text alignment, hook the resize event to make sure that the content width is at least frame_inner_rect().width() wide. This allows us to use content_width() as the anchor point for right aligned text, rather than using the frame inner rect, which was clearly wrong in the overflow case.
This commit is contained in:
parent
f1eba2295d
commit
0c88ce9ee3
2 changed files with 12 additions and 7 deletions
|
@ -133,6 +133,7 @@ private:
|
|||
virtual void enter_event(CEvent&) override;
|
||||
virtual void leave_event(CEvent&) override;
|
||||
virtual void context_menu_event(GContextMenuEvent&) override;
|
||||
virtual void resize_event(GResizeEvent&) override;
|
||||
|
||||
void create_actions();
|
||||
void paint_ruler(Painter&);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue