Browse Source

HUE-4067 [assist] Fix issue with truncated columns of the last assist entry

Johan Ahlen 9 years ago
parent
commit
89f52422e4
1 changed files with 2 additions and 1 deletions
  1. 2 1
      desktop/core/src/desktop/static/desktop/js/ko.hue-bindings.js

+ 2 - 1
desktop/core/src/desktop/static/desktop/js/ko.hue-bindings.js

@@ -3694,7 +3694,8 @@
         var $parentOwner;
         var $parentOwner;
 
 
         while ($lastParent) {
         while ($lastParent) {
-          var lastRefOffset = $lastRef.offset().top;
+          // Include the header, parent() is .foreach-wrapper, parent().parent() is the container (ul or div)
+          var lastRefOffset = $lastRef.parent().parent().offset().top;
           var lastAddedSpace = 0;
           var lastAddedSpace = 0;
           $lastParent.children().each(function (idx, child) {
           $lastParent.children().each(function (idx, child) {
             var $child = $(child);
             var $child = $(child);