mirror of
https://github.com/zebrajr/ladybird.git
synced 2025-12-06 00:19:53 +01: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
|
|
@ -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…
Reference in New Issue
Block a user