You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
observe [DEBUG] graph - Rect(31.6875x22.0 at (150.0, 150.0)) in the log incorrect
change attribute to top: "200px", then back to top: "150px", for example
observe [DEBUG] graph - Rect(102.0x102.0 at (150.0, 150.0)) in the log correct
Expected behavior
The correct dimensions are reported right away: Rect(102.0x102.0 at (150.0, 150.0)).
I think that the value of the attributes set in the css file are not taken into account correctly at the first call. If I move the width and height attributes from the css file directly into the element, the first call returns Rect(100.0x100.0 at (150.0, 150.0)) which is still incorrect but correctly takes into account the values of width and height (the difference is the border thickness, that is still set in the css file).
Environment:
Dioxus version: 0.5.1
Rust version: 1.77.2, stable
OS info: Manjaro Linux - App platform: desktop
The text was updated successfully, but these errors were encountered:
Problem
The first call to
MountedData::get_client_rect()
inonmounted
returns incorrect values.Steps To Reproduce
dx serve
[DEBUG] graph - Rect(31.6875x22.0 at (150.0, 150.0))
in the log incorrecttop: "200px",
then back totop: "150px",
for example[DEBUG] graph - Rect(102.0x102.0 at (150.0, 150.0))
in the log correctExpected behavior
The correct dimensions are reported right away:
Rect(102.0x102.0 at (150.0, 150.0))
.I think that the value of the attributes set in the css file are not taken into account correctly at the first call. If I move the
width
andheight
attributes from the css file directly into the element, the first call returnsRect(100.0x100.0 at (150.0, 150.0))
which is still incorrect but correctly takes into account the values of width and height (the difference is the border thickness, that is still set in the css file).Environment:
0.5.1
1.77.2
,stable
Manjaro Linux
- App platform:desktop
The text was updated successfully, but these errors were encountered: