فهرست منبع

HUE-2157 [search] Gridlayout field list min height could match number of rows

Added height change when the rows space is bigger than the list
Enrico Berti 11 سال پیش
والد
کامیت
f12d89e
1فایلهای تغییر یافته به همراه4 افزوده شده و 0 حذف شده
  1. 4 0
      apps/search/src/search/templates/search.mako

+ 4 - 0
apps/search/src/search/templates/search.mako

@@ -1189,6 +1189,10 @@ function toggleDocDetails(doc) {
 
 function resizeFieldsList() {
   $(".fields-list").css("max-height", Math.max($("#result-container").height(), 230));
+  var _fillHeight = $("#result-container").height() - 40;
+  if ($(".fields-list").height() < _fillHeight) {
+    $(".fields-list").height(_fillHeight);
+  }
 }
 
 $(document).ready(function () {