mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-11 18:20:43 +09:00
LibGUI: Fix a typo
This commit is contained in:
parent
a66dbef1ed
commit
7eed3dab5d
Notes:
sideshowbarker
2024-07-19 17:02:07 +09:00
Author: https://github.com/mikeakers
Commit: 7eed3dab5d
Pull-request: https://github.com/SerenityOS/serenity/pull/15973
1 changed files with 1 additions and 1 deletions
|
@ -39,7 +39,7 @@ Dialog::ExecResult Dialog::exec()
|
|||
if (parent() && is<Window>(parent())) {
|
||||
auto& parent_window = *static_cast<Window*>(parent());
|
||||
if (parent_window.is_visible()) {
|
||||
// Check the dialog's positiom against the Desktop's rect and reposition it to be entirely visible.
|
||||
// Check the dialog's position against the Desktop's rect and reposition it to be entirely visible.
|
||||
// If the dialog is larger than the desktop's rect just center it.
|
||||
window_rect.center_within(parent_window.rect());
|
||||
if (window_rect.size().width() < desktop_rect.size().width() && window_rect.size().height() < desktop_rect.size().height()) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue