-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[bug] Manual WebView resizing does not work correctly #10053
Comments
If the initial position is (1, 1) and scale_factor is 1.5 (150%), the position becomes (2, 2) in set_bounds . After that, the position seems to increase from (2, 2) -> (3, 3), (3, 3) -> (5, 5), and so on. |
Now that I know the cause, I'll send a Pull Request later. |
I have a similar issue with my app. Whatever values I use, my Webview fills the bottom half of the app window. I reported this and @FabianLars responded that it might be related to this issue. So I cloned the repo from the OP. In that case the Webview fills the whole app Window whatever I do with the commented out code. No matter what I do I don't seem able to affect the position / size / behaviour of the Webview in the OP example or my app. This fits with my not understanding how the multiwebview example is achieving it's layout. I don't see how that can divide the vertical space equally between (four I think) Webviews, nor how it results in them taking up the full width. A good place to start for me would be for the multiwebview example to be explained (and fixed first if indeed it is buggy, which seems to be the case).
|
I have a similar issue. Updating webview size using |
@happybeing @hattapoglu |
Yeh, thanks. I suspect not based on the symptoms and the strangeness I see in the example - how does that work? I shall take a another look before long. |
Describe the bug
Manually resizing the WebView(set_size) results in incorrect positioning of the WebView.
However, if the WebView coordinates are set to (0., 0.), it works correctly.
https://youtu.be/02gJWTb1Hjg
Reproduction
https://github.com/kanatapple/tauri-manual-resize
Expected behavior
No response
Full
tauri info
outputStack trace
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: