Skip to content

Commit

Permalink
0004943: Removed auto margin from Labels
Browse files Browse the repository at this point in the history
  • Loading branch information
evan-miller-jumpmind committed Oct 26, 2021
1 parent 2244eb6 commit c542bc7
Showing 1 changed file with 0 additions and 3 deletions.
Expand Up @@ -34,13 +34,11 @@ public class Label extends Span {
public Label() {
super();
getElement().getStyle().set("display", "flex");
getElement().getStyle().set("margin", "auto");
}

public Label(String text) {
html = new Html("<div style='width: 100%'>" + text + "</div>");
getElement().getStyle().set("display", "flex");
getElement().getStyle().set("margin", "auto");
add(html);
}

Expand All @@ -65,7 +63,6 @@ public Label(String text, Icon icon) {
public Label(Component component) {
setText(component.getElement().getOuterHTML());
getElement().getStyle().set("display", "flex");
getElement().getStyle().set("margin", "auto");
}

public String getText() {
Expand Down

0 comments on commit c542bc7

Please sign in to comment.