line-height: normal;
}
-/* Enable kinetic scrolling on Mobile Safari 6 */
-.v-ios.v-sa6 & .v-scrollable {
+/* Enable kinetic scrolling on iOS 6 */
+.v-ios6.v-webkit & .v-scrollable {
-webkit-overflow-scrolling: touch;
}
}
String osClass = getOperatingSystemClass();
if (osClass != null) {
- cssClass = cssClass + " " + prefix + osClass;
+ cssClass = cssClass + " " + osClass;
}
if (isTouchDevice()) {
cssClass = cssClass + " " + prefix + UI_TOUCH;
}
private String getOperatingSystemClass() {
+ String prefix = "v-";
+
if (browserDetails.isAndroid()) {
- return OS_ANDROID;
+ return prefix + OS_ANDROID;
} else if (browserDetails.isIOS()) {
- return OS_IOS;
+ String iosClass = prefix + OS_IOS;
+ if (isIOS6()) {
+ iosClass += " " + prefix + OS_IOS + "6";
+ }
+ return iosClass;
} else if (browserDetails.isWindows()) {
- return OS_WINDOWS;
+ return prefix + OS_WINDOWS;
} else if (browserDetails.isLinux()) {
- return OS_LINUX;
+ return prefix + OS_LINUX;
} else if (browserDetails.isMacOSX()) {
- return OS_MACOSX;
+ return prefix + OS_MACOSX;
}
// Unknown OS
return null;