src/ztfy/myams/resources/js/ext/bootstrap-modal.js
changeset 174 8d81f90f1d08
parent 118 c87d242a1176
child 206 02a40997d8cb
--- a/src/ztfy/myams/resources/js/ext/bootstrap-modal.js	Thu Sep 01 15:18:16 2016 +0200
+++ b/src/ztfy/myams/resources/js/ext/bootstrap-modal.js	Thu Sep 29 12:12:03 2016 +0200
@@ -136,8 +136,10 @@
 
 			if (value) {
 				var body = this.$element.find(this.options.overflow);
-				body.style('overflow', 'auto', 'important')
-					.style(prop, (typeof(value) == 'function' ? value() : value) + 'px', 'important');
+				if (body.css('overflow') === undefined) {
+					body.style('overflow', 'auto', 'important');
+				}
+				body.style(prop, (typeof(value) == 'function' ? value() : value) + 'px', 'important');
 			}
 
 			var modalOverflow = $(window).height() - 10 < this.$element.height();