jquery.lp_minipanel.js code error.
In jquery.lp_minipanel.js there is an error in line 46 :
var left_width = $('learning_path_left_zone').width();
The left_width var never gets the value because the learning_path_left_zone is an id and must have the #.
The line must be :
var left_width = $('#learning_path_left_zone').width();
Other bug I confirmed in Chrome is when you close the minipanel and reopens the learning path right zone is white. It appears a problem with chrome and the value assigned in this line (80)
$('#learning_path_right_zone').css('marginLeft', left_width + 10 + 'px');
$('#learning_path_right_zone').css('marginLeft', left_width + 25 + 'px');
Instead of plus 10 to left_width var plus 25 solves the problem, perhaps needs more testing.
Updated by Yoselyn Castillo almost 6 years ago
- Status changed from New to Needs more info
- % Done changed from 0 to 50
This change makes sense but i could not reproduce the original bug in Learning path. Could you tell me which is the specific bug in order to confirm it is completely solved?
Also,I don't think it's a good idea to include other changes in this pull request like here
Each change should be in separated pulls