From 14874cb389c34c4a7456e6a9a48ee093259ff895 Mon Sep 17 00:00:00 2001 From: llj Date: Sat, 4 Aug 2012 15:17:55 +0800 Subject: [PATCH] improved auto-complete in myhome --- templates/snippets/myhome_extra_script.html | 1 + 1 file changed, 1 insertion(+) diff --git a/templates/snippets/myhome_extra_script.html b/templates/snippets/myhome_extra_script.html index ea02f736d1..f602355aae 100644 --- a/templates/snippets/myhome_extra_script.html +++ b/templates/snippets/myhome_extra_script.html @@ -13,6 +13,7 @@ $(function() { $("#repo_id").val($(this).attr("data")); $("#repo-share-form").modal({appendTo: "#main"}); addAutocomplete('#email_or_group', '#repo-share-form', share_list); + $('.ui-autocomplete').css({'max-height': window.innerHeight - $('.ui-autocomplete-input').offset().top - $('.ui-autocomplete-input').height() - 10, 'overflow': 'auto'}); }); //check before post