mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-09 17:44:56 +09:00
UI/AppKit: Use webview layout event instead of window resize events
Currently the window resize events are used to resize the webview. But when extra window items appear, for example: search or DevTools Bar then the webview is clipped out of the window. This also happens when the tab bar is opened and closed. Listening to layout events resolves these clipping issues completely.
This commit is contained in:
parent
5a3b98e0a9
commit
0b6f693636
Notes:
github-actions[bot]
2025-05-08 10:24:20 +00:00
Author: https://github.com/bplaat
Commit: 0b6f693636
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/4649
Reviewed-by: https://github.com/AtkinsSJ ✅
1 changed files with 2 additions and 2 deletions
|
@ -1550,9 +1550,9 @@ static void copy_data_to_clipboard(StringView data, NSPasteboardType pasteboard_
|
|||
[self setWindowSize:window.size()];
|
||||
}
|
||||
|
||||
- (void)viewDidEndLiveResize
|
||||
- (void)layout
|
||||
{
|
||||
[super viewDidEndLiveResize];
|
||||
[super layout];
|
||||
[self handleResize];
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue