]> source.dussan.org Git - vaadin-framework.git/commitdiff
Add v-iosN classname for all iOS versions instead of just N=6 (#12324)
authorJohannes Dahlström <johannesd@vaadin.com>
Thu, 19 Sep 2013 11:23:46 +0000 (14:23 +0300)
committerVaadin Code Review <review@vaadin.com>
Thu, 19 Sep 2013 11:25:25 +0000 (11:25 +0000)
Change-Id: Id06cfab1404facd612aa470d82757ae6dfe71641

client/src/com/vaadin/client/BrowserInfo.java

index 84b6f14c34418420a738ad2c8e4b99f2332088a3..273964c889adad06ba2397ffe77dd9da44fb0fe4 100644 (file)
@@ -207,10 +207,7 @@ public class BrowserInfo {
             return prefix + OS_ANDROID;
         } else if (browserDetails.isIOS()) {
             String iosClass = prefix + OS_IOS;
-            if (getOperatingSystemMajorVersion() == 5) {
-                iosClass += " " + prefix + OS_IOS + "5";
-            }
-            return iosClass;
+            return iosClass + " " + iosClass + getOperatingSystemMajorVersion();
         } else if (browserDetails.isWindows()) {
             return prefix + OS_WINDOWS;
         } else if (browserDetails.isLinux()) {