Showing
1 changed file
with
6 additions
and
1 deletions
@@ -14,17 +14,22 @@ class GradeDetailPage extends Page { | @@ -14,17 +14,22 @@ class GradeDetailPage extends Page { | ||
14 | super(); | 14 | super(); |
15 | 15 | ||
16 | this.view = { | 16 | this.view = { |
17 | + header: $('.user-defined-header'), | ||
17 | levelStr: $('#levelStr'), | 18 | levelStr: $('#levelStr'), |
18 | gradeGraph: $('#gradeGraph'), | 19 | gradeGraph: $('#gradeGraph'), |
20 | + boxEntry: $('.box-entry'), | ||
19 | gradeBillList: $('#gradeBillList'), | 21 | gradeBillList: $('#gradeBillList'), |
22 | + gradeDetailArea: $('.grade-detail-area'), | ||
20 | loadingMask: $('#loadingMask'), | 23 | loadingMask: $('#loadingMask'), |
21 | loadingLogoText: $('#loadingMask > .loading-logo, #loadingMask > .loading-text'), | 24 | loadingLogoText: $('#loadingMask > .loading-logo, #loadingMask > .loading-text'), |
22 | navBack: $('.nav-back'), | 25 | navBack: $('.nav-back'), |
23 | noData: $('.no-data') | 26 | noData: $('.no-data') |
24 | }; | 27 | }; |
25 | 28 | ||
29 | + $(document).ready(() => { | ||
26 | this.view.gradeBillList.css('height', () => { | 30 | this.view.gradeBillList.css('height', () => { |
27 | - return $(window).height() - 462.5; | 31 | + return $(window).height() - $('.grade-bill-list').offset().top - 50; |
32 | + }); | ||
28 | }); | 33 | }); |
29 | 34 | ||
30 | this.eGradeGraph = echarts.init(this.view.gradeGraph[0]); | 35 | this.eGradeGraph = echarts.init(this.view.gradeGraph[0]); |
-
Please register or login to post a comment