From 2bc1674237e72783ee5b0831c8575f7f340d1875 Mon Sep 17 00:00:00 2001 From: Maxime Beauchemin Date: Mon, 22 Aug 2016 20:27:03 -0700 Subject: [PATCH] [bugfix] slice description makes charts overflow (#993) --- caravel/assets/javascripts/modules/caravel.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/caravel/assets/javascripts/modules/caravel.js b/caravel/assets/javascripts/modules/caravel.js index 1a851e3a43dbe..81473558ae842 100644 --- a/caravel/assets/javascripts/modules/caravel.js +++ b/caravel/assets/javascripts/modules/caravel.js @@ -26,6 +26,7 @@ const px = function () { } $('.favstar') .attr('title', 'Click to favorite/unfavorite') + .css('cursor', 'pointer') .each(show) .each(function () { let url = baseUrl + $(this).attr('class_name'); @@ -203,9 +204,9 @@ const px = function () { height() { let others = 0; const widget = container.parents('.widget'); - const sliceDescription = widget.find('.sliceDescription'); + const sliceDescription = widget.find('.slice_description'); if (sliceDescription.is(':visible')) { - others += widget.find('.sliceDescription').height() + 25; + others += widget.find('.slice_description').height() + 25; } others += widget.find('.chart-header').height(); return widget.height() - others - 10;