mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-31 19:19:43 +01:00
Etemplate - Make sure dialog is wide enough for the title
This commit is contained in:
parent
c07a0509ce
commit
b064760e0f
@ -514,6 +514,15 @@ var et2_dialog = (function(){ "use strict"; return et2_widget.extend(
|
|||||||
}
|
}
|
||||||
|
|
||||||
this.div.dialog(options);
|
this.div.dialog(options);
|
||||||
|
|
||||||
|
// Make sure dialog is wide enough for the title
|
||||||
|
// Arbitrary numbers that seem to work nicely.
|
||||||
|
var title_width = 20 + 10 * this.options.title.length;
|
||||||
|
if(this.div.width() < title_width)
|
||||||
|
{
|
||||||
|
// Auto-sizing chopped the title
|
||||||
|
this.div.dialog('option', 'width', title_width);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
});}).call(this);
|
});}).call(this);
|
||||||
et2_register_widget(et2_dialog, ["dialog"]);
|
et2_register_widget(et2_dialog, ["dialog"]);
|
||||||
|
Loading…
Reference in New Issue
Block a user