@soyjavi 14 лет назад
Родитель
Сommit
01caeb3428
1 измененных файлов с 3 добавлено и 4 удалено
  1. 3 4
      src/boot/Lungo.Boot.Section.js

+ 3 - 4
src/boot/Lungo.Boot.Section.js

@@ -41,9 +41,8 @@ LUNGO.Boot.Section = (function(lng, undefined) {
     };
 
     var _initAllSections = function(sections) {
-
         if (lng.Core.isMobile()) {
-            _setPositionFixedInIOS5(sections);
+            _setPositionFixedInIOS(sections);
         }
 
         for (var i = 0, len = sections.length; i < len; i++) {
@@ -60,10 +59,10 @@ LUNGO.Boot.Section = (function(lng, undefined) {
         lng.dom('aside').addClass('show');
     };
 
-    var _setPositionFixedInIOS5 = function(sections) {
+    var _setPositionFixedInIOS = function(sections) {
         var environment = lng.Core.environment();
 
-        if (environment.os.name === 'ios' && environment.os.version >= '5.') {
+        if (environment.os.name === 'ios' && environment.os.version >= '4.') {
             sections.style('position', 'fixed');
         }
     }