summaryrefslogtreecommitdiffstats
path: root/src/com/itmill/toolkit/terminal/gwt/server
diff options
context:
space:
mode:
authorArtur Signell <artur.signell@itmill.com>2009-01-30 13:16:34 +0000
committerArtur Signell <artur.signell@itmill.com>2009-01-30 13:16:34 +0000
commit8375246810fb490a57b253ff0f543db86e7e5509 (patch)
tree3853f8ace7c0da308906329ff86d7bd46130d0f8 /src/com/itmill/toolkit/terminal/gwt/server
parent77110c608326c7626973d311a513bcc509ff69c6 (diff)
downloadvaadin-framework-8375246810fb490a57b253ff0f543db86e7e5509.tar.gz
vaadin-framework-8375246810fb490a57b253ff0f543db86e7e5509.zip
Fix for #2122 - Force IE8 to use IE7 compatibility mode in toolkit applications
svn changeset:6686/svn branch:trunk
Diffstat (limited to 'src/com/itmill/toolkit/terminal/gwt/server')
-rw-r--r--src/com/itmill/toolkit/terminal/gwt/server/ApplicationServlet.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/com/itmill/toolkit/terminal/gwt/server/ApplicationServlet.java b/src/com/itmill/toolkit/terminal/gwt/server/ApplicationServlet.java
index 471ef2877e..5532fae62a 100644
--- a/src/com/itmill/toolkit/terminal/gwt/server/ApplicationServlet.java
+++ b/src/com/itmill/toolkit/terminal/gwt/server/ApplicationServlet.java
@@ -854,6 +854,8 @@ public class ApplicationServlet extends HttpServlet {
+ ">\n<head>\n");
page
.write("<meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\"/>\n");
+ page
+ .write("<meta http-equiv=\"X-UA-Compatible\" content=\"IE=7\" />\n");
page.write("<style type=\"text/css\">"
+ "html, body {height:100%;}</style>");
@@ -1071,6 +1073,8 @@ public class ApplicationServlet extends HttpServlet {
* .i-app-<simpleName for app class>
* .i-theme-<themeName, remove non-alphanum>
*/
+ // FIXME Can themeName be null? This possibility is taken into account
+ // in other places
page.write("<div id=\"" + appId
+ "\" class=\"i-app i-app-loading i-theme-"
+ themeName.replaceAll("[^a-zA-Z0-9]", "") + " i-app-"