diff options
author | Morris Jobke <hey@morrisjobke.de> | 2016-11-25 23:49:37 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-11-25 23:49:37 +0100 |
commit | 789e6e7363514cc9dc669ef259ac1a5e491c2277 (patch) | |
tree | 9d7907c9ade19f793d1608e66b2a31d33648dc18 /core | |
parent | 47646794b9426f40c12719d78c5a92a71570b4b2 (diff) | |
parent | 9528045178b53fbf3b97d344dda1fd448b4989cf (diff) | |
download | nextcloud-server-789e6e7363514cc9dc669ef259ac1a5e491c2277.tar.gz nextcloud-server-789e6e7363514cc9dc669ef259ac1a5e491c2277.zip |
Merge pull request #2340 from nextcloud/autocomplete-max-width-to-input
Add jquery ui fixes js file + fix autocomplete width
Diffstat (limited to 'core')
-rw-r--r-- | core/css/styles.css | 1 | ||||
-rw-r--r-- | core/js/jquery-ui-fixes.js | 8 |
2 files changed, 9 insertions, 0 deletions
diff --git a/core/css/styles.css b/core/css/styles.css index 21583d6198c..3ba617cb7a0 100644 --- a/core/css/styles.css +++ b/core/css/styles.css @@ -628,6 +628,7 @@ label.infield { .avatardiv, .avatardiv img { border-radius: 50%; + flex-shrink: 0; } td.avatar { border-radius: 0; diff --git a/core/js/jquery-ui-fixes.js b/core/js/jquery-ui-fixes.js new file mode 100644 index 00000000000..9ccaa38cc47 --- /dev/null +++ b/core/js/jquery-ui-fixes.js @@ -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()); +} |