1
0
Fork 0
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:
Bastiaan van der Plaat 2025-05-08 09:20:26 +02:00 committed by Sam Atkins
parent 5a3b98e0a9
commit 0b6f693636
Notes: github-actions[bot] 2025-05-08 10:24:20 +00:00

View file

@ -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];
}