15d6fbbdeb6d44027f34cb685bcb9ca4e1e235fb
java/com.sap.sailing.gwt.ui/src/main/java/com/sap/sailing/gwt/home/shared/partials/checkboxtile/CheckBoxTile.gss
| ... | ... | @@ -4,16 +4,13 @@ |
| 4 | 4 | align-items: center; |
| 5 | 5 | gap: 0.5em; |
| 6 | 6 | padding: 0.333333333333333em; |
| 7 | - /* position: relative; */ |
|
| 8 | 7 | } |
| 9 | 8 | |
| 10 | 9 | .checkbox { |
| 11 | 10 | position: relative; |
| 12 | 11 | display: inline-flex; |
| 13 | 12 | align-items: center; |
| 14 | - justify-content: center; /* |
|
| 15 | - right: 0.333333333333333em; |
|
| 16 | - top: 0.333333333333333em; */ |
|
| 13 | + justify-content: center; |
|
| 17 | 14 | width: 2em; |
| 18 | 15 | height: 2em; |
| 19 | 16 | } |
java/com.sap.sailing.gwt.ui/src/main/java/com/sap/sailing/gwt/home/shared/partials/checkboxtile/CheckBoxTile.java
| ... | ... | @@ -38,6 +38,7 @@ public final class CheckBoxTile extends Composite implements HasValue<Boolean> { |
| 38 | 38 | public CheckBoxTile(final String label, final boolean initialState, |
| 39 | 39 | final BiConsumer<Boolean, AsyncCallback<VoidResult>> onToggle) { |
| 40 | 40 | super(); |
| 41 | + CheckBoxTileResources.INSTANCE.css().ensureInjected(); |
|
| 41 | 42 | initWidget(uiBinder.createAndBindUi(this)); |
| 42 | 43 | labelUi.setText(label); |
| 43 | 44 | initToggleButtonUi(initialState, onToggle); |
java/com.sap.sailing.gwt.ui/src/main/java/com/sap/sailing/gwt/home/shared/partials/labeledbox/LabeledBox.java
| ... | ... | @@ -6,21 +6,19 @@ import com.google.gwt.uibinder.client.UiBinder; |
| 6 | 6 | import com.google.gwt.uibinder.client.UiField; |
| 7 | 7 | import com.google.gwt.user.client.ui.Composite; |
| 8 | 8 | import com.google.gwt.user.client.ui.Widget; |
| 9 | -import com.sap.sailing.gwt.home.shared.partials.checkboxtile.CheckBoxTileResources; |
|
| 10 | 9 | |
| 11 | 10 | public class LabeledBox extends Composite { |
| 12 | 11 | @UiField |
| 13 | 12 | SpanElement headerTitleUi; |
| 14 | 13 | @UiField(provided = true) |
| 15 | 14 | Widget childUi; |
| 16 | - |
|
| 15 | + |
|
| 17 | 16 | private static LabeledBoxUiBinder uiBinder = GWT.create(LabeledBoxUiBinder.class); |
| 18 | 17 | |
| 19 | 18 | interface LabeledBoxUiBinder extends UiBinder<Widget, LabeledBox> { |
| 20 | 19 | } |
| 21 | 20 | |
| 22 | 21 | public LabeledBox(final String title, final Widget childUi) { |
| 23 | - CheckBoxTileResources.INSTANCE.css().ensureInjected(); |
|
| 24 | 22 | this.childUi = childUi; |
| 25 | 23 | initWidget(uiBinder.createAndBindUi(this)); |
| 26 | 24 | headerTitleUi.setInnerText(title); |
java/com.sap.sailing.gwt.ui/src/main/java/com/sap/sailing/gwt/home/shared/partials/multiselection/MiscellaneousDisplayImpl.java
| ... | ... | @@ -48,7 +48,6 @@ public class MiscellaneousDisplayImpl { |
| 48 | 48 | .youWillNotReceiveFeatureAndCommunityUpdatesAnymore(); |
| 49 | 49 | final String message = isNowTrue ? passAndTrue : passAndFalse; |
| 50 | 50 | Notification.notify(message, NotificationType.SUCCESS); |
| 51 | - callback.onSuccess(result); |
|
| 52 | 51 | if (callback != null) { |
| 53 | 52 | callback.onSuccess(result); |
| 54 | 53 | } |
java/com.sap.sailing.gwt.ui/src/main/java/com/sap/sailing/gwt/home/shared/places/user/profile/preferences/UserPreferences.java
| ... | ... | @@ -54,9 +54,7 @@ public class UserPreferences extends Composite implements UserPreferencesView { |
| 54 | 54 | } |
| 55 | 55 | |
| 56 | 56 | public void setEdgeToEdge(boolean edgeToEdge) { |
| 57 | -// favoriteBoatClassesSelctionUi.setStyleName(style.edgeToEdge(), edgeToEdge); |
|
| 58 | 57 | favoriteCompetitorsSelctionUi.setStyleName(style.edgeToEdge(), edgeToEdge); |
| 59 | -// favoriteBoatClassesSelctionUi.getElement().getParentElement().removeClassName(res.mediaCss().column()); |
|
| 60 | 58 | favoriteCompetitorsSelctionUi.getElement().getParentElement().removeClassName(res.mediaCss().column()); |
| 61 | 59 | } |
| 62 | 60 | } |