mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-09 15:38:27 +01:00
Let et2_dialogs size themselves according to contents unless otherwise specified.
(just dialogs, leave others alone)
This commit is contained in:
parent
e0ad35a241
commit
010815ea0f
@ -483,6 +483,7 @@ var et2_dialog = (function(){ "use strict"; return et2_widget.extend(
|
|||||||
minWidth: this.options.minWidth,
|
minWidth: this.options.minWidth,
|
||||||
minHeight:this.options.minHeight,
|
minHeight:this.options.minHeight,
|
||||||
maxWidth: 640,
|
maxWidth: 640,
|
||||||
|
height: 'auto',
|
||||||
title: this.options.title,
|
title: this.options.title,
|
||||||
open: function() {
|
open: function() {
|
||||||
// Focus default button so enter works
|
// Focus default button so enter works
|
||||||
@ -494,7 +495,7 @@ var et2_dialog = (function(){ "use strict"; return et2_widget.extend(
|
|||||||
position: {my:this.options.position, at:this.options.position, of:window}
|
position: {my:this.options.position, at:this.options.position, of:window}
|
||||||
};
|
};
|
||||||
// Leaving width unset lets it size itself according to contents
|
// Leaving width unset lets it size itself according to contents
|
||||||
if(this.options.width && this.options.width !== 'auto')
|
if(this.options.width )
|
||||||
{
|
{
|
||||||
options.width = this.options.width;
|
options.width = this.options.width;
|
||||||
}
|
}
|
||||||
@ -584,7 +585,8 @@ jQuery.extend(et2_dialog, //(function(){ "use strict"; return
|
|||||||
buttons: typeof _buttons != 'undefined' ? _buttons : et2_dialog.BUTTONS_YES_NO,
|
buttons: typeof _buttons != 'undefined' ? _buttons : et2_dialog.BUTTONS_YES_NO,
|
||||||
dialog_type: typeof _type != 'undefined' ? _type : et2_dialog.QUESTION_MESSAGE,
|
dialog_type: typeof _type != 'undefined' ? _type : et2_dialog.QUESTION_MESSAGE,
|
||||||
icon: _icon,
|
icon: _icon,
|
||||||
value: _value
|
value: _value,
|
||||||
|
width: false
|
||||||
}, parent);
|
}, parent);
|
||||||
},
|
},
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user