ID:2873835
 
Resolved
Secondary map controls didn't have the right internal size info when they were re-created after previously being used, and would stay broken until something caused a HUD update.
BYOND Version:514
Operating System:Windows 11 Pro 64-bit
Web Browser:Firefox 115.0
Applies to:Dream Seeker
Status: Resolved (515.1609)

This issue has been resolved.
Descriptive Problem Summary:

If a secondary map view is added to a window with winset, and then removed by setting its parent to null/empty string, and then re-added to the same window, the window retains appearance information that is scaled improperly.

Numbered Steps to Reproduce Problem:

1. Create secondary map view with object in it, the view should be larger than the object's real pixel size, so it is forced to upscale. The object should be at 1:0,1:0.
2. Popup the map view in a new window. Set the parent to the window.
3. Set the parent to null. Map view disappears in window.
4. Set the parent back to the window. See improper scaling/appearance.

Code Snippet (if applicable) to Reproduce Problem:

https://www.dropbox.com/s/vcmxr3438wrrqc4/ map-view-scaling-bug.zip

Expected Results:

The map view should render appropriately, with the icon filling the box.

Actual Results:

The map view renders the icon at its default icon size, or just the incorrect scale.

The issue does not correct itself until the atom on the map's appearance updates somehow.

Does the problem occur:
Every time? Or how often? Always
In other games? In Space Station 13's TGUI Preference menu and ByondUI elements
In other user accounts? Yes
On other computers? Yes

When does the problem NOT occur? Unsure

Did the problem NOT occur in any earlier versions? If so, what was the last version that worked? (Visit http://www.byond.com/download/build to download old versions for testing.) Unsure

Workarounds:
Updating the appearance of the atom on remounting / constantly.
Lummox JR resolved issue with message:
Secondary map controls didn't have the right internal size info when they were re-created after previously being used, and would stay broken until something caused a HUD update.