Skip to content
This repository was archived by the owner on Aug 27, 2018. It is now read-only.

Commit 63411ee

Browse files
committed
Fix day item collapsing and rising up
1 parent 0e835d9 commit 63411ee

File tree

1 file changed

+3
-3
lines changed
  • 3-panel/src/views/Pages/LessonsPlan/components/Day

1 file changed

+3
-3
lines changed

3-panel/src/views/Pages/LessonsPlan/components/Day/index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,11 @@ export default class Day extends Component {
3030
const root = this.getRoot()
3131
const icon = this.elements.icon
3232

33-
root.style.height = (flag) ? root.scrollHeight + 'px' : '48px'
33+
root.style.height = root.scrollHeight + 'px'
3434

3535
setTimeout(function () {
36-
root.style.height = 'auto'
37-
}, 300)
36+
root.style.height = (flag) ? 'auto' : '48px'
37+
}, (flag) ? 300 : 20)
3838

3939
icon.style.transform = 'rotate(' + ((flag) ? 180 : 0) + 'deg)'
4040

0 commit comments

Comments
 (0)