From f66d90f8f95bc1fa390a3711c1d457dae0f9958c Mon Sep 17 00:00:00 2001 From: ArthurJahn Date: Sat, 5 Sep 2015 13:37:38 -0300 Subject: [PATCH] fixing filter options scroll height --- theme.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/theme.js b/theme.js index 2a3690d..ac6cb24 100644 --- a/theme.js +++ b/theme.js @@ -131,6 +131,7 @@ $('#link-buscar').click(function(e) { function toggleFilterOptions(){ var filterOptions = $("#filter-categories-option"); + var filterHeight = filterOptions[0].scrollHeight; var showOptions = $("#filter-option-catalog-software"); var hideOptions = $("#filter-option-catalog-close"); if(hideOptions.is(":visible")){ @@ -146,7 +147,7 @@ $('#link-buscar').click(function(e) { showOptions.hide(); hideOptions.show(); filterOptions.animate({ - height: 565 + height: filterHeight },500); } } -- libgit2 0.21.2