Skip to content

Allow ImageTextButton to have image and label on separate rows#1110

Closed
pyko wants to merge 1 commit intolibgdx:masterfrom
pyko:master
Closed

Allow ImageTextButton to have image and label on separate rows#1110
pyko wants to merge 1 commit intolibgdx:masterfrom
pyko:master

Conversation

@pyko
Copy link
Copy Markdown

@pyko pyko commented Dec 21, 2013

ImageTextButton allows you to create button where the image and label are on the same row (image left, label right).

Added functionality to allow the image and label to be on separate rows (image top, label below)

@NathanSweet
Copy link
Copy Markdown
Member

You can do this outside of the ImageTextButton:

button.clearChildren();
button.add(button.getImage()).row();
button.add(button.getLabel());

I think I prefer this over making it a configurable option, as there are other configurations (eg, label then image, label then image on next row, etc) and fewer config options is better.

@pyko
Copy link
Copy Markdown
Author

pyko commented Dec 21, 2013

Oh nice! Didn't know you can do that.

Bit obscure/hard to find, but definitely more flexible.

Agree that fewer config options are better.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants