Open kanatapple opened 2 weeks ago
If the initial position is (1, 1) and scale_factor is 1.5 (150%), the position becomes (2, 2) in set_bounds .
In bounds.position.to_physical
it becomes (1.5, 1.5), but it is cast to (2, 2).
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.
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