Skip to content

[Visual Issue] All ShowIfAttributeBase add a strange padding depending on the amount of fields being affected #404

@Nachin1998

Description

@Nachin1998

Using this attribute causes excessive padding depending on the amount of hidden fields before the current field being show.

This is the tested code:
Image

Here is the result using the Test1 enum, no visible issues:
Image

Here is the result using the Test2 enum, you can already see a small padding separation between "Heart to affect" and "Heart Type to swap 2":
Image

Here is the result using the Test3 enum, you can clearly see a huge gap between the remaining fields:
Image

This is not affected by the amount of enum values, it is affected by the amount of fields that are shown/hidden. It would seem there is a strange addition of height somewhere that takes into consideration all fields affected in the target. I tried to look it up myself but was unable to locate the proper logic.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions