|
@@ -3466,13 +3466,20 @@ export default {
|
|
|
this.rightBoxHeight = $(".rightBox")[0].scrollHeight;
|
|
|
// document.querySelector('.course_left').scrollHeight
|
|
|
// document.querySelector('.stepsBottom2').scrollHeight
|
|
|
- let stepsBottom2 = $(".stepsBottom2")[0].clientHeight
|
|
|
- let client = $(".course_left")[0].clientHeight - stepsBottom2
|
|
|
- let top = $(".rightBox")[0].scrollTop - 400
|
|
|
- if (top > client) {
|
|
|
- $('.stepsBottom2')[0].style.top = client + 'px'
|
|
|
- } else if (top > 0) {
|
|
|
- $('.stepsBottom2')[0].style.top = top + 'px'
|
|
|
+
|
|
|
+ // let stepsBottom2 = $(".stepsBottom2")[0].clientHeight
|
|
|
+ // let client = $(".course_left")[0].clientHeight - stepsBottom2
|
|
|
+ // let top = $(".rightBox")[0].scrollTop - 400
|
|
|
+ // if (top > client) {
|
|
|
+ // $('.stepsBottom2')[0].style.top = client + 'px'
|
|
|
+ // } else if (top > 0) {
|
|
|
+ // $('.stepsBottom2')[0].style.top = top + 'px'
|
|
|
+ // } else {
|
|
|
+ // $('.stepsBottom2')[0].style.top = '0px'
|
|
|
+ // }
|
|
|
+ let stepsBottom2 = $(".stepsBottom2")[0].offsetTop
|
|
|
+ if (stepsBottom2 > 40) {
|
|
|
+ $('.stepsBottom2')[0].style.top = (stepsBottom2 - 40) + 'px'
|
|
|
} else {
|
|
|
$('.stepsBottom2')[0].style.top = '0px'
|
|
|
}
|