Skip to content

Commit

Permalink
chore: fix gtk_multiwebview example on wayland (#1371)
Browse files Browse the repository at this point in the history
  • Loading branch information
amrbashir authored Sep 26, 2024
1 parent c2766bf commit eafaadb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions examples/gtk_multiwebview.rs
Original file line number Diff line number Diff line change
Expand Up @@ -63,21 +63,21 @@ fn main() -> wry::Result<()> {
})
.with_url("https://tauri.app")
.build()?;
let webview2 = WebViewBuilder::new_as_child(&window)
let webview2 = create_webview_builder()
.with_bounds(Rect {
position: LogicalPosition::new(size.width / 2, 0).into(),
size: LogicalSize::new(size.width / 2, size.height / 2).into(),
})
.with_url("https://github.com/tauri-apps/wry")
.build()?;
let webview3 = WebViewBuilder::new_as_child(&window)
let webview3 = create_webview_builder()
.with_bounds(Rect {
position: LogicalPosition::new(0, size.height / 2).into(),
size: LogicalSize::new(size.width / 2, size.height / 2).into(),
})
.with_url("https://twitter.com/TauriApps")
.build()?;
let webview4 = WebViewBuilder::new_as_child(&window)
let webview4 = create_webview_builder()
.with_bounds(Rect {
position: LogicalPosition::new(size.width / 2, size.height / 2).into(),
size: LogicalSize::new(size.width / 2, size.height / 2).into(),
Expand Down

0 comments on commit eafaadb

Please sign in to comment.