]> source.dussan.org Git - vaadin-framework.git/commitdiff
Disable tutorial code for browser.getClientHeight/Width as it's broken
authorLeif Åstrand <leif@vaadin.com>
Wed, 20 Jun 2012 13:32:41 +0000 (16:32 +0300)
committerLeif Åstrand <leif@vaadin.com>
Wed, 20 Jun 2012 13:32:41 +0000 (16:32 +0300)
tests/testbench/com/vaadin/tests/minitutorials/v7a1/UsingXyzWhenInitializing.java

index 87d8351f77c9974a8c4f7b3c45637911542d10de..426ef3525ef6064ad492d6283aff13bcec1a69e9 100644 (file)
@@ -5,7 +5,6 @@
 package com.vaadin.tests.minitutorials.v7a1;
 
 import com.vaadin.terminal.WrappedRequest;
-import com.vaadin.terminal.gwt.server.WebBrowser;
 import com.vaadin.ui.Label;
 import com.vaadin.ui.Root;
 
@@ -36,18 +35,18 @@ public class UsingXyzWhenInitializing extends Root {
             getContent().addComponent(new Label("Welcome to my application"));
         }
 
-        WebBrowser browser = request.getBrowserDetails().getWebBrowser();
-        String resolution = "Your browser window on startup was "
-                + browser.getClientWidth() + "x" + browser.getClientHeight();
-        if (browser.getClientWidth() > 1024) {
-            getContent().addComponent(
-                    new Label("The is the large version of the application. "
-                            + resolution));
-        } else {
-            getContent().addComponent(
-                    new Label("This is the small version of the application. "
-                            + resolution));
-        }
+        // WebBrowser browser = request.getBrowserDetails().getWebBrowser();
+        // String resolution = "Your browser window on startup was "
+        // + browser.getClientWidth() + "x" + browser.getClientHeight();
+        // if (browser.getClientWidth() > 1024) {
+        // getContent().addComponent(
+        // new Label("The is the large version of the application. "
+        // + resolution));
+        // } else {
+        // getContent().addComponent(
+        // new Label("This is the small version of the application. "
+        // + resolution));
+        // }
     }
 
 }