Skip to content

Commit 2a19fd0

Browse files
paodbjavier-godoy
authored andcommitted
fix: remove fake label on vertical orientation buttons layout
1 parent 5f45baf commit 2a19fd0

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/main/java/com/flowingcode/vaadin/addons/twincolgrid/TwinColGrid.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -160,9 +160,6 @@ public TwinColGrid(final ListDataProvider<T> dataProvider, String caption) {
160160
rightGridDataProvider = DataProvider.ofCollection(new LinkedHashSet<>());
161161
getRightGrid().setDataProvider(rightGridDataProvider);
162162

163-
fakeButtonContainerLabel.getElement().setProperty("innerHTML", "&nbsp;");
164-
fakeButtonContainerLabel.setVisible(false);
165-
166163
getLeftGrid().setWidth("100%");
167164
getRightGrid().setWidth("100%");
168165

@@ -259,6 +256,9 @@ private VerticalLayout getVerticalButtonContainer() {
259256
removeButton.setIcon(VaadinIcon.ANGLE_LEFT.create());
260257
removeAllButton.setIcon(VaadinIcon.ANGLE_DOUBLE_LEFT.create());
261258

259+
fakeButtonContainerLabel.getElement().setProperty("innerHTML", "&nbsp;");
260+
fakeButtonContainerLabel.setVisible(false);
261+
262262
VerticalLayout vButtonContainer =
263263
new VerticalLayout(
264264
fakeButtonContainerLabel, addAllButton, addButton, removeButton, removeAllButton);
@@ -276,7 +276,7 @@ private HorizontalLayout getHorizontalButtonContainer() {
276276

277277
HorizontalLayout hButtonContainer =
278278
new HorizontalLayout(
279-
fakeButtonContainerLabel, addAllButton, addButton, removeButton, removeAllButton);
279+
addAllButton, addButton, removeButton, removeAllButton);
280280
hButtonContainer.setPadding(false);
281281
hButtonContainer.setSizeUndefined();
282282
return hButtonContainer;

0 commit comments

Comments
 (0)