@soyjavi 14 лет назад
Родитель
Сommit
9815c16e54

+ 6 - 0
CHANGES.md

@@ -1,6 +1,12 @@
 # LungoJS
 # LungoJS
 ### HTML5 Mobile Framework, and stuff.
 ### HTML5 Mobile Framework, and stuff.
 
 
+## Changes in Version 1.1.1
+
+- BUG FIXED:
+	- Issue #58: Fixed position in iOS Devices (4+)
+    - Fixed height of a scroll when overwrite a .list
+
 ## Changes in Version 1.1
 ## Changes in Version 1.1
 
 
 - @QuoJS Library implemented, Zepto.js deprecated.
 - @QuoJS Library implemented, Zepto.js deprecated.

+ 3 - 3
release/LICENSE.txt

@@ -4,7 +4,7 @@ Copyright (c) 2011 TapQuo Inc (Javier Jimenez Villar)
 ===============================================================================
 ===============================================================================
 
 
 OPEN SOURCE LICENSE FOR LUNGOJS
 OPEN SOURCE LICENSE FOR LUNGOJS
-Version 1.1
+Version 1.1.1
 
 
 LungoJS is an avid supporter of open source software. This is the appropriate
 LungoJS is an avid supporter of open source software. This is the appropriate
 option if you are creating an open source application with a license compatible
 option if you are creating an open source application with a license compatible
@@ -31,7 +31,7 @@ THE SOFTWARE IS LICENSED, NOT SOLD.
 ===============================================================================
 ===============================================================================
 
 
 OPEN SOURCE LICENSE FAQ
 OPEN SOURCE LICENSE FAQ
-Version 1.1
+Version 1.1.1
 
 
 This document is for guidance purposes only and is not a legal document and is
 This document is for guidance purposes only and is not a legal document and is
 not legally binding. We encourage you to read the GPL v3 and the Quick Guide to
 not legally binding. We encourage you to read the GPL v3 and the Quick Guide to
@@ -42,7 +42,7 @@ advice.
 ===============================================================================
 ===============================================================================
 
 
 LUNGOJS AND THE GPL v3
 LUNGOJS AND THE GPL v3
-Version 1.1
+Version 1.1.1
 
 
 -------------------------------------------------------------------------------
 -------------------------------------------------------------------------------
 What is the GPL v3?
 What is the GPL v3?

+ 14 - 10
release/lungo-1.1.js

@@ -14,7 +14,7 @@
  *
  *
  * @copyright 2011 TapQuo Inc (c)
  * @copyright 2011 TapQuo Inc (c)
  * @license   http://www.github.com/tapquo/lungo/blob/master/LICENSE.txt
  * @license   http://www.github.com/tapquo/lungo/blob/master/LICENSE.txt
- * @version   1.1
+ * @version   1.1.1
  * @link      https://github.com/TapQuo/Lungo.js
  * @link      https://github.com/TapQuo/Lungo.js
  *
  *
  * @author   Javier Jimenez Villar <javi@tapquo.com> || @soyjavi
  * @author   Javier Jimenez Villar <javi@tapquo.com> || @soyjavi
@@ -23,7 +23,7 @@
 
 
 var LUNGO = LUNGO || {};
 var LUNGO = LUNGO || {};
 
 
-LUNGO.VERSION = '1.1';
+LUNGO.VERSION = '1.1.1';
 
 
 LUNGO.Attributes || (LUNGO.Attributes = {});
 LUNGO.Attributes || (LUNGO.Attributes = {});
 LUNGO.Data || (LUNGO.Data = {});
 LUNGO.Data || (LUNGO.Data = {});
@@ -963,23 +963,27 @@ LUNGO.View.Scroll = (function(lng, undefined) {
         var element = scroll[0];
         var element = scroll[0];
         if (element.clientHeight < element.scrollHeight) {
         if (element.clientHeight < element.scrollHeight) {
             is_necessary = true;
             is_necessary = true;
-            var child_height = element.scrollHeight + HEADER_FOOTER_BLEEDING;
-            _resizeChildContainer(element, child_height);
+            _resizeChildContainer(element);
         }
         }
 
 
         return is_necessary;
         return is_necessary;
     };
     };
 
 
-    var _resizeChildContainer = function(element, height) {
+    var _resizeChildContainer = function(element) {
         var child_container = lng.dom(element).children().first();
         var child_container = lng.dom(element).children().first();
-        child_container.style('height', height + 'px');
+        child_container.style('height', 'auto');
+        child_container.style('height', child_container.height() + HEADER_FOOTER_BLEEDING + 'px');
     };
     };
 
 
     var _saveScrollInCache = function(id, properties) {
     var _saveScrollInCache = function(id, properties) {
         _createScrollIndexInCache();
         _createScrollIndexInCache();
 
 
         var scroll = lng.Data.Cache.get(CACHE_KEY);
         var scroll = lng.Data.Cache.get(CACHE_KEY);
-        scroll[id] = new iScroll(id, properties);
+        if (!scroll[id]) {
+            scroll[id] = new iScroll(id, properties);
+        } else {
+            scroll[id].refresh();
+        }
         lng.Data.Cache.set(CACHE_KEY, scroll);
         lng.Data.Cache.set(CACHE_KEY, scroll);
     };
     };
 
 
@@ -1841,7 +1845,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++) {
@@ -1858,10 +1862,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');
         }
         }
     }
     }

+ 1 - 1
release/lungo-1.1.min.css

@@ -14,7 +14,7 @@
  *
  *
  * @copyright 2011 TapQuo Inc (c)
  * @copyright 2011 TapQuo Inc (c)
  * @license   http://www.github.com/tapquo/lungo/blob/master/LICENSE.txt
  * @license   http://www.github.com/tapquo/lungo/blob/master/LICENSE.txt
- * @version   1.1
+ * @version   1.1.1
  * @link      https://github.com/TapQuo/Lungo.js
  * @link      https://github.com/TapQuo/Lungo.js
  *
  *
  * @author   Javier Jimenez Villar <javi@tapquo.com> || @soyjavi
  * @author   Javier Jimenez Villar <javi@tapquo.com> || @soyjavi

Разница между файлами не показана из-за своего большого размера
+ 26 - 0
release/lungo-1.1.1.min.js


Разница между файлами не показана из-за своего большого размера
+ 6 - 6
release/lungo-1.1.packed.js


Разница между файлами не показана из-за своего большого размера
+ 0 - 25
release/lungo-1.1.min.js


+ 4 - 18
release/lungo.theme.default.css

@@ -1,25 +1,11 @@
 /**
 /**
+ * Stylesheet
  *
  *
- *    /$$
- *   | $$
- *   | $$       /$$   /$$ /$$$$$$$   /$$$$$$   /$$$$$$
- *   | $$      | $$  | $$| $$__  $$ /$$__  $$ /$$__  $$
- *   | $$      | $$  | $$| $$  \ $$| $$  \ $$| $$  \ $$
- *   | $$      | $$  | $$| $$  | $$| $$  | $$| $$  | $$
- *   | $$$$$$$$|  $$$$$$/| $$  | $$|  $$$$$$$|  $$$$$$/
- *   |________/ \______/ |__/  |__/ \____  $$ \______/
- *                                  /$$  \ $$
- *                                 |  $$$$$$/
- *                                  \______/
+ * @namespace LUNGO.Theme
+ * @class Default
  *
  *
- * @copyright 2011 TapQuo Inc (c)
- * @license   http://www.github.com/tapquo/lungo/blob/master/LICENSE.txt
- * @version   1.1
- * @link      https://github.com/TapQuo/Lungo.js
- *
- * @author   Javier Jimenez Villar <javi@tapquo.com> || @soyjavi
+ * @author Javier Jimenez Villar <javi@tapquo.com> || @soyjavi
  */
  */
-
 .app {
 .app {
   background: #000000;
   background: #000000;
 }
 }

+ 1 - 1
src/Lungo.js

@@ -23,7 +23,7 @@
 
 
 var LUNGO = LUNGO || {};
 var LUNGO = LUNGO || {};
 
 
-LUNGO.VERSION = '1.1';
+LUNGO.VERSION = '1.1.1';
 
 
 LUNGO.Attributes || (LUNGO.Attributes = {});
 LUNGO.Attributes || (LUNGO.Attributes = {});
 LUNGO.Data || (LUNGO.Data = {});
 LUNGO.Data || (LUNGO.Data = {});

+ 1 - 1
vendor/build.sh

@@ -1,5 +1,5 @@
 #!/bin/bash
 #!/bin/bash
-VERSION="1.1"
+VERSION="1.1.1"
 
 
 #define paths
 #define paths
 COMPILER=google-compiler/compiler.jar
 COMPILER=google-compiler/compiler.jar