Просмотр исходного кода

Issue #58: Fixed position in iOS Devices (4+)

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

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

@@ -43,7 +43,7 @@ LUNGO.Boot.Section = (function(lng, undefined) {
     var _initAllSections = function(sections) {
     var _initAllSections = function(sections) {
 
 
         if (lng.Core.isMobile()) {
         if (lng.Core.isMobile()) {
-            _setPositionFixedInIOS5(sections);
+            _setPositionFixedInIOS(sections);
         }
         }
 
 
         for (var i = 0, len = sections.length; i < len; i++) {
         for (var i = 0, len = sections.length; i < len; i++) {
@@ -60,10 +60,10 @@ LUNGO.Boot.Section = (function(lng, undefined) {
         lng.dom('aside').addClass('show');
         lng.dom('aside').addClass('show');
     };
     };
 
 
-    var _setPositionFixedInIOS5 = function(sections) {
+    var _setPositionFixedInIOS = function(sections) {
         var environment = lng.Core.environment();
         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');
             sections.style('position', 'fixed');
         }
         }
     }
     }