Updated Branches: refs/heads/ui-restyle 6a74d23db -> 27fb29967
listView fixed header: Fix 'jump' when scrolling Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/27fb2996 Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/27fb2996 Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/27fb2996 Branch: refs/heads/ui-restyle Commit: 27fb29967a1c9c5b30d9c0a9e8fdcc72815b1a2d Parents: 6a74d23 Author: Brian Federle <brian.fede...@citrix.com> Authored: Wed Oct 2 13:53:30 2013 -0700 Committer: Brian Federle <brian.fede...@citrix.com> Committed: Wed Oct 2 13:53:30 2013 -0700 ---------------------------------------------------------------------- ui/scripts/ui/widgets/listView.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cloudstack/blob/27fb2996/ui/scripts/ui/widgets/listView.js ---------------------------------------------------------------------- diff --git a/ui/scripts/ui/widgets/listView.js b/ui/scripts/ui/widgets/listView.js index 5498a38..ab0e7a0 100644 --- a/ui/scripts/ui/widgets/listView.js +++ b/ui/scripts/ui/widgets/listView.js @@ -1895,9 +1895,9 @@ .appendTo($fixedContainer); $fixedContainer.append($('<table>').append($fixedContainer.find('thead'))); $fixedElems.find('thead').wrap( - $('<table>') + $('<table>').addClass('fixed') ); - $fixedContainer.find('table').width($listView.find('table tbody').width()); + $fixedContainer.find('table').width($listView.find('table:not(.fixed)').outerWidth()); $fixedContainer.find('.toolbar').width($listView.find('.toolbar.hidden').outerWidth()); $fixedContainer.find('thead th').each(function() { var $th = $(this);