Skip to content
Snippets Groups Projects
Commit c75beb28 authored by Matyáš Latner's avatar Matyáš Latner
Browse files

Merge branch 'V3.3' of gitlab.labs.nic.cz:labs/tablexia into V3.3

parents 8607c39d 7f0bd51d
No related branches found
No related tags found
No related merge requests found
......@@ -154,6 +154,7 @@ public class TablexiaButton extends Group {
textLabel = new TablexiaLabel(text, new TablexiaLabel.TablexiaLabelStyle(fontType, DEFAULT_TEXT_COLOR));
textLabel.setAlignment(DEFAULT_TEXT_ALIGN);
textLabel.setWrap(wrapText);
textLabel.pack();
TEXT_LAYER.addActor(textLabel);
setSize(DEFAULT_WIDTH, DEFAULT_HEIGHT);
......@@ -182,6 +183,7 @@ public class TablexiaButton extends Group {
public TablexiaButton text(String text) {
if (textLabel != null) {
textLabel.setText(text);
adjustBounds();
}
return this;
}
......@@ -448,6 +450,7 @@ public class TablexiaButton extends Group {
setSizeForImage(pressed, pressedPatch);
setSizeForImage(solarized, solarizedPatch);
setSizeForImage(disabled, disabledPatch);
textLabel.pack();
setSizeTextLabel(textLabel);
super.setBounds(x, y, width, height);
super.sizeChanged();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment