secondlife / viewer

🖥️ Second Life's official client
GNU Lesser General Public License v2.1
211 stars 53 forks source link

UI Oddity in Script Window #1923

Open canny[bot] opened 4 months ago

canny[bot] commented 4 months ago

Cross-posted from FIRE-34053

The 'Search / Replace' floater and Script Window argue about top/height somehow and makes resizing strange. Video included to reproduce.

Relevant info:

This likely happens in other areas where a floater can attach to another. Im not sure where to look.

High DPI monitor, has caused issues before. No overrides done, and UI scale is 1.0.

https://secondlife.canny.io/admin/board/bug-reports/p/ui-oddity-in-script-window

canny[bot] commented 4 months ago

This issue has been linked to a Canny post: UI Oddity in Script Window :tada:

AtlasLinden commented 4 months ago

Note that this also occurs for the Inventory filter floater

akleshchev commented 3 months ago

What's the expected behavior here? Should everything remain identical, only not resize the parent? Or should child floater not move too far from parent?

AtlasLinden commented 3 months ago

Expected behaviour should have the child floater not moving up and down away from the parent floater when resizing vertically

akleshchev commented 3 months ago

The problem with that: it's legit to snap child far away from parent. Position is relative, so child must move, but that part doesn't work right either. I will add some contraints for moving child, but this needs to be revised.

dmytrohproductengine commented 1 month ago

Failed QA.

Verified on the Second Life Release 7.1.11.10947335521 (64bit) on Win10/OSX in the scope of https://github.com/secondlife/iqa/issues/348.

This issue is still reproduced in the "Script" and "Inventory" floaters (see "actual_7.1.11.10947335521.mp4").

The child floater is moved when it is adjacent to the parent floater. The child floater is not moved when it is far away from the parent floater.

actual_7.1.11.10947335521.mp4 https://github.com/user-attachments/assets/2def9031-9d40-4577-83a1-a31eab1a008c