src/pyams_skin/resources/js/ext/bootstrap-modal.js
changeset 151 2c67b6c103bb
parent 0 bb4aabe07487
child 176 308f11404e60
--- a/src/pyams_skin/resources/js/ext/bootstrap-modal.js	Tue Jun 28 10:53:09 2016 +0200
+++ b/src/pyams_skin/resources/js/ext/bootstrap-modal.js	Thu Sep 29 12:08:12 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();