mirror of
https://github.com/nextcloud/server.git
synced 2024-07-29 20:15:55 +02:00
Don't set the dialog content height to a zero or negative value
This commit is contained in:
parent
541495b1b5
commit
46d6cb739d
@ -160,10 +160,16 @@
|
||||
}
|
||||
this.parent = this.$dialog.parent().length > 0 ? this.$dialog.parent() : $('body');
|
||||
content_height = Math.min(content_height, this.parent.height()-20);
|
||||
this.element.css({
|
||||
height: content_height + 'px',
|
||||
width: this.$dialog.innerWidth()-20 + 'px'
|
||||
});
|
||||
if (content_height> 0) {
|
||||
this.element.css({
|
||||
height: content_height + 'px',
|
||||
width: this.$dialog.innerWidth()-20 + 'px'
|
||||
});
|
||||
} else {
|
||||
this.element.css({
|
||||
width : this.$dialog.innerWidth() - 20 + 'px'
|
||||
});
|
||||
}
|
||||
},
|
||||
_createOverlay: function() {
|
||||
if(!this.options.modal) {
|
||||
|
Loading…
Reference in New Issue
Block a user