Skip to content

Commit a946112

Browse files
paodbjavier-godoy
authored andcommitted
refactor: replace paragraph with span to avoid alignment breaking
Close #12
1 parent b323b31 commit a946112

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/main/java/com/flowingcode/vaadin/addons/cronexpressionfield/CronExpressionField.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@
4444
import com.vaadin.flow.component.formlayout.FormLayout.ResponsiveStep;
4545
import com.vaadin.flow.component.grid.Grid;
4646
import com.vaadin.flow.component.html.Div;
47-
import com.vaadin.flow.component.html.Paragraph;
4847
import com.vaadin.flow.component.html.Span;
4948
import com.vaadin.flow.component.orderedlayout.FlexComponent.Alignment;
5049
import com.vaadin.flow.component.orderedlayout.FlexComponent.JustifyContentMode;
@@ -341,7 +340,7 @@ private void setMonthlyLayout() {
341340
dayOfMonthField.setValue(1);
342341
dayOfMonthField.setWidth("30%");
343342
IntegerField monthField = new IntegerField(i18n.getRepeatEveryLabel());
344-
monthField.setSuffixComponent(new Paragraph(i18n.getMonth()));
343+
monthField.setSuffixComponent(new Span(i18n.getMonth()));
345344
monthField.setValue(1);
346345
monthField.setStepButtonsVisible(true);
347346
monthField.setMin(1);

0 commit comments

Comments
 (0)