Skip to content

Commit

Permalink
always tell segmented request our desired size
Browse files Browse the repository at this point in the history
Fixes #5642
  • Loading branch information
spalger committed Dec 11, 2015
1 parent a6785ad commit cf377fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/plugins/kibana/public/discover/controllers/discover.js
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,7 @@ define(function (require) {
if (sort[0] === '_score') segmented.setMaxSegments(1);
segmented.setDirection(sortBy === 'time' ? (sort[1] || 'desc') : 'desc');
segmented.setSortFn(sortFn);
segmented.setSize(sortBy === 'time' ? $scope.opts.sampleSize : false);
segmented.setSize($scope.opts.sampleSize);

// triggered when the status updated
segmented.on('status', function (status) {
Expand Down

0 comments on commit cf377fb

Please sign in to comment.