diff --git a/package-lock.json b/package-lock.json index a8cf73b..345b866 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "@oat-sa/tao-core-sdk", - "version": "1.19.0", + "version": "1.19.1", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index d1322f0..51d9e4c 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@oat-sa/tao-core-sdk", - "version": "1.19.0", + "version": "1.19.1", "displayName": "TAO Core SDK", "description": "Core libraries of TAO", "homepage": "https://github.com/oat-sa/tao-core-sdk-fe#readme", diff --git a/src/util/adaptSize.js b/src/util/adaptSize.js index 9d27ab2..034793c 100644 --- a/src/util/adaptSize.js +++ b/src/util/adaptSize.js @@ -86,6 +86,15 @@ var adaptSize = (function() { */ both: function($elements, minWidth, minHeight) { _resize($elements, { height: minHeight, width: minWidth }); + }, + + /** + * Set height to auto on a set of elements + * + * @param {jQueryElements} $elements + */ + resetHeight: function($elements) { + $elements.height('auto'); } }; })();