mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-01 07:52:50 +00:00
LibGfx: Add TextAlignment::BottomRight
This commit is contained in:
parent
23a43d10f3
commit
28db3cd5ef
Notes:
sideshowbarker
2024-07-19 03:16:48 +09:00
Author: https://github.com/petelliott
Commit: 28db3cd5ef
Pull-request: https://github.com/SerenityOS/serenity/pull/3255
Reviewed-by: https://github.com/awesomekling
3 changed files with 10 additions and 0 deletions
|
@ -134,6 +134,10 @@ void Rect<T>::align_within(const Rect<T>& other, TextAlignment alignment)
|
|||
set_x(other.x() + other.width() - width());
|
||||
center_vertically_within(other);
|
||||
return;
|
||||
case TextAlignment::BottomRight:
|
||||
set_x(other.x() + other.width() - width());
|
||||
set_y(other.y() + other.height() - height());
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue