diff --git a/package.json b/package.json index 7df1c08..87fa61b 100644 --- a/package.json +++ b/package.json @@ -101,12 +101,12 @@ "@vaadin/vaadin-time-picker": "2.4.0", "@vaadin/vaadin-context-menu": "4.5.0", "@vaadin/vaadin-avatar": "1.0.3", - "@vaadin-component-factory/vcf-tooltip": "1.3.13", "@vaadin/vaadin-radio-button": "1.5.1", "@vaadin/vaadin-tabs": "3.2.0", "@vaadin/vaadin-lumo-styles": "1.6.0", "@vaadin/vaadin-material-styles": "1.3.2", - "open": "^7.2.1" + "open": "^7.2.1", + "@vaadin-component-factory/vcf-tooltip": "1.3.13" }, "devDependencies": { "compression-webpack-plugin": "4.0.1", diff --git a/src/main/java/edu/kit/typicalc/view/main/InfoDialog.java b/src/main/java/edu/kit/typicalc/view/main/InfoDialog.java index 28e67eb..54814eb 100644 --- a/src/main/java/edu/kit/typicalc/view/main/InfoDialog.java +++ b/src/main/java/edu/kit/typicalc/view/main/InfoDialog.java @@ -28,18 +28,18 @@ public class InfoDialog extends Dialog implements LocaleChangeObserver { * Creates new InfoDialog. */ protected InfoDialog() { - heading = new H4(getTranslation("root.inputSyntax")); - HorizontalLayout infoHeader = new HorizontalLayout(heading); - infoHeader.setId(INFO_HEADER_ID); - - //TODO fill with content - VerticalLayout infoContent = new VerticalLayout(); - infoContent.setId(INFO_CONTENT_ID); - add(infoHeader, infoContent); + heading = new H4(getTranslation("root.inputSyntax")); + HorizontalLayout infoHeader = new HorizontalLayout(heading); + infoHeader.setId(INFO_HEADER_ID); + + //TODO fill with content + VerticalLayout infoContent = new VerticalLayout(); + infoContent.setId(INFO_CONTENT_ID); + add(infoHeader, infoContent); } @Override public void localeChange(LocaleChangeEvent event) { - heading.setText(getTranslation("root.inputSyntax")); + heading.setText(getTranslation("root.inputSyntax")); } } diff --git a/src/main/java/edu/kit/typicalc/view/main/InputBar.java b/src/main/java/edu/kit/typicalc/view/main/InputBar.java index 7cdf7b4..d88eddd 100644 --- a/src/main/java/edu/kit/typicalc/view/main/InputBar.java +++ b/src/main/java/edu/kit/typicalc/view/main/InputBar.java @@ -85,8 +85,8 @@ public class InputBar extends HorizontalLayout implements LocaleChangeObserver { } private void onInfoIconClick() { - final Dialog infoDialog = new InfoDialog(); - infoDialog.open(); + final Dialog infoDialog = new InfoDialog(); + infoDialog.open(); } @Override