Merge pull request #2340 from nextcloud/autocomplete-max-width-to-input
Add jquery ui fixes js file + fix autocomplete width
This commit is contained in:
commit
789e6e7363
3 changed files with 10 additions and 0 deletions
|
@ -628,6 +628,7 @@ label.infield {
|
|||
.avatardiv,
|
||||
.avatardiv img {
|
||||
border-radius: 50%;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
td.avatar {
|
||||
border-radius: 0;
|
||||
|
|
8
core/js/jquery-ui-fixes.js
vendored
Normal file
8
core/js/jquery-ui-fixes.js
vendored
Normal file
|
@ -0,0 +1,8 @@
|
|||
// Various jquery fixes
|
||||
|
||||
// Set autocomplete width the same as the related input
|
||||
// See http://stackoverflow.com/a/11845718
|
||||
jQuery.ui.autocomplete.prototype._resizeMenu = function () {
|
||||
var ul = this.menu.element;
|
||||
ul.outerWidth(this.element.outerWidth());
|
||||
}
|
|
@ -147,6 +147,7 @@ class OC_Template extends \OC\Template\Base {
|
|||
OC_Util::addScript("js", null, true);
|
||||
OC_Util::addScript("oc-dialogs", null, true);
|
||||
OC_Util::addScript("jquery.ocdialog", null, true);
|
||||
OC_Util::addScript("jquery-ui-fixes");
|
||||
OC_Util::addStyle("jquery.ocdialog");
|
||||
OC_Util::addScript('files/fileinfo');
|
||||
OC_Util::addScript('files/client');
|
||||
|
|
Loading…
Reference in a new issue