Skip to content

No ability to scale list entry elements #305

@Da0neDatGotAway

Description

@Da0neDatGotAway

the list is hardcoded to be 20 units tall because of this call to the super constructor in ListEntryWidget.java
super(entryWidget.getDimension().withHeight(Math.min(entryWidget.getDimension().height(), 20) - ((listOptionEntry.parentGroup().indexOf(listOptionEntry) == listOptionEntry.parentGroup().options().size() - 1) ? 0 : 2))); // -2 to remove the padding
The issue is that you cannot make the height larger than 20 Math.min(entryWidget.getDimension().height(), 20)
The list itself appears to support different sizes as the UI uses the height of the entry, but the height of the list entries cannot be changed without using internal methods.
It may be possible that it was supposed to be Math.max() since 20 is the hardcoded size of the buttons

Edit: forgot to mention this is for version 3.8.0+1.21.9-fabric

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