oωo (owo-lib)

oωo (owo-lib)

23M Downloads

Dropdown elements can't have tooltips

Bumer-32 opened this issue · 1 comments

commented

Here just simple dropdown menu with button inside it, and you can add tooltip to this button but it doesn't shows!

DropdownComponent.openContextMenu(
                this,
                rootComponent,
                FlowLayout::child,
                selectMode.x.toDouble(),
                selectMode.y.toDouble() + selectMode.height.toDouble(),
            ) { dropdown ->
                dropdown.allowOverflow(true)
                
                dropdown.button(Text.literal("something")) { button ->
                    button.tooltip(Text.literal("my awesome tooltip")) // won't do anything but mc can launch with it
                }
            }

Maybe i'm making something wrong?

commented

sorry bad issue. I`m trying to set tooltip at button was pressed)