lsc hai 1 ano
pai
achega
60df3fd795
Modificáronse 1 ficheiros con 7 adicións e 6 borrados
  1. 7 6
      src/components/pages/easy/addCourse.vue

+ 7 - 6
src/components/pages/easy/addCourse.vue

@@ -3470,12 +3470,13 @@ export default {
       let stepsBottom2 = $(".stepsBottom2")[0].clientHeight
       let client = $(".course_left")[0].clientHeight - stepsBottom2
       let top = $(".rightBox")[0].scrollTop - 400
-      if (top > client) {
-        let top = $(".rightBox")[0].offsetTop
-        $('.stepsBottom2')[0].style.position = 'fixed'
-        $('.stepsBottom2')[0].style.top = top + 'px'
-        // $('.stepsBottom2')[0].style.top = client + 'px'
-      } else if (top > 0) {
+      // if (top > client) {
+      //   let top = $(".rightBox")[0].offsetTop
+      //   $('.stepsBottom2')[0].style.position = 'fixed'
+      //   $('.stepsBottom2')[0].style.top = top + 'px'
+      //   // $('.stepsBottom2')[0].style.top = client + 'px'
+      // } else 
+      if (top > 0) {
         let top = $(".rightBox")[0].offsetTop
         $('.stepsBottom2')[0].style.position = 'fixed'
         $('.stepsBottom2')[0].style.top = top + 'px'