From f33efe3dde7d1b6066e7020875aecf689a51515a Mon Sep 17 00:00:00 2001 From: Brian Talbot Date: Thu, 13 Dec 2012 13:45:57 -0500 Subject: [PATCH] settings - debugged height issue with new/manipulated grade bars and moved solution back to CSS layer --- cms/static/js/views/settings/main_settings_view.js | 2 -- cms/static/sass/_settings.scss | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/cms/static/js/views/settings/main_settings_view.js b/cms/static/js/views/settings/main_settings_view.js index 09d68684b4..e31f4b4f41 100644 --- a/cms/static/js/views/settings/main_settings_view.js +++ b/cms/static/js/views/settings/main_settings_view.js @@ -462,7 +462,6 @@ CMS.Views.Settings.Grading = CMS.Views.ValidatingView.extend({ // 0th ele doesn't have a bar; so, will never invoke this var cachethis = this; return function(event, ui) { - ui.element.height("50px"); var barIndex = ui.element.index(); // min and max represent limits not labels (note, can's make smaller than 3 points wide) var min = (barIndex < cachethis.descendingCutoffs.length ? cachethis.descendingCutoffs[barIndex]['cutoff'] + 3 : 3); @@ -488,7 +487,6 @@ CMS.Views.Settings.Grading = CMS.Views.ValidatingView.extend({ var cachethis = this; return function(event, ui) { // for some reason the resize is setting height to 0 - ui.element.height("50px"); cachethis.saveCutoffs(); } }, diff --git a/cms/static/sass/_settings.scss b/cms/static/sass/_settings.scss index 6a31f7ec64..8420e033d0 100644 --- a/cms/static/sass/_settings.scss +++ b/cms/static/sass/_settings.scss @@ -699,7 +699,7 @@ } .grade-specific-bar { - height: 50px; + height: 50px !important; } .grades {