Valheim-Modding/Jotunn

[BUG] Dropdown width only affects inner contents

joeyparrish opened this issue · 0 comments

Details:
Jotunn Version: 2.3.9
Jotunn Submodule(if applicable): GUIManager
Repeatability(Consistent(100%), Inconsistent(50%), Rare(1%), Unknown(==1)): 100%

Problem Description:
Setting the width of a Dropdown only affects its contents, not the dropdown itself.

Expected Behaviour:
I expect the Dropdown and its inner contents to be sized appropriately, with the explicit width I set to be the width of the outer element.

Actual Behaviour:
The outer element is always exactly 160px wide. The inner contents are resized, causing weird effects. The selection indicator (little white ball) is always in the same location. When the inner contents are wider than 100px, they overlap with this indicator.
See screenshot:

dropdown-bug

I believe I have a fix for this, so I will send a PR soon.