Open ElectroidDes opened 3 months ago
All windows are positioned via SameLine.
As you can see, changing the width of the window frame (and other widgets too) - Breaks Everything.
This is pretty similar to #7887, i don't need we need two issues.
GetWindowSize()
has some meaningful value for your layout. It doesn't and never had. GetWindowSize()
was never advertised as "visible size" they are paddings involved.I believe the two actions I want to do eventually do (but hold your breath) are.
GetWindowSize()
).For now I have pushed e471206 which makes the default clip rect match the border centered around windows edges. This should make both #7887 and #7888 a little less confusing.
But ultimately the solution would be the two points above.
Version/Branch of Dear ImGui:
1.90.8
Back-ends:
Raylib
Compiler, OS:
Windows10
Full config/build information:
No response
Details:
For different values of the child window frame width - the return value of the child window size GetWindowSize - differs from the actual visible size.
The same applies to the position of the Upper Left corner of the Child Window. For different values of the child window frame width - the return value of the child window position GetWindowPos - differs from the actual visible position.
Because of this, it is just impossible to accurately position and calculate the necessary coordinates of objects.
Screenshots/Video: