Skip to content

Commit 7ca88c9

Browse files
mlopezFCjavier-godoy
authored andcommitted
chore: remove old way of setting viewport
1 parent af6fed3 commit 7ca88c9

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

src/main/java/com/flowingcode/addons/applayout/AppLayout.java

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,6 @@
2626
import com.vaadin.flow.component.dependency.NpmPackage;
2727
import com.vaadin.flow.component.html.Div;
2828
import com.vaadin.flow.component.html.Image;
29-
import com.vaadin.flow.server.InitialPageSettings;
30-
import com.vaadin.flow.server.PageConfigurator;
3129
import java.util.ArrayList;
3230
import java.util.Arrays;
3331
import java.util.List;
@@ -42,7 +40,7 @@
4240
@JsModule("@flowingcode/fc-applayout/fc-applayout.js")
4341
@NpmPackage(value = "@flowingcode/fc-applayout", version = "0.9.3")
4442
@CssImport(value = "./styles/applayout-styles.css", themeFor = "fc-applayout")
45-
public class AppLayout extends Div implements PageConfigurator {
43+
public class AppLayout extends Div {
4644

4745
private final List<Component> menuItems = new ArrayList<>();
4846
private final List<Component> toolbarComponents = new ArrayList<>();
@@ -125,11 +123,6 @@ public void setCaption(String caption) {
125123
this.getElement().setAttribute("title", caption);
126124
}
127125

128-
@Override
129-
public void configurePage(InitialPageSettings settings) {
130-
settings.addMetaTag("viewport", "width=device-width, initial-scale=1.0");
131-
}
132-
133126
/** Mantains the header fixed at the top so it never moves away. */
134127
public void setFixed(boolean fixed) {
135128
this.getElement().setAttribute("fixed", fixed);

0 commit comments

Comments
 (0)