Authored by 郭成尧

height

... ... @@ -14,17 +14,22 @@ class GradeDetailPage extends Page {
super();
this.view = {
header: $('.user-defined-header'),
levelStr: $('#levelStr'),
gradeGraph: $('#gradeGraph'),
boxEntry: $('.box-entry'),
gradeBillList: $('#gradeBillList'),
gradeDetailArea: $('.grade-detail-area'),
loadingMask: $('#loadingMask'),
loadingLogoText: $('#loadingMask > .loading-logo, #loadingMask > .loading-text'),
navBack: $('.nav-back'),
noData: $('.no-data')
};
$(document).ready(() => {
this.view.gradeBillList.css('height', () => {
return $(window).height() - 462.5;
return $(window).height() - $('.grade-bill-list').offset().top - 50;
});
});
this.eGradeGraph = echarts.init(this.view.gradeGraph[0]);
... ...