(fixed: boolean)
| 44 | |
| 45 | |
| 46 | function toggle_input_panel_style(fixed: boolean) { |
| 47 | fixed = state.FixedInputPanel && fixed; |
| 48 | if (!fixed) { |
| 49 | input_panel.removeClass('fixed'); |
| 50 | end_space.height(0); |
| 51 | input_panel.height('unset'); |
| 52 | } else { |
| 53 | let min = fixed_input_init_height(); |
| 54 | end_space.height(min - 40); // 40 = #input-container.fixed padding-top |
| 55 | input_panel.height(min); |
| 56 | // input_panel显示动画 |
| 57 | // input_panel.height(0); |
| 58 | // input_panel.stop().animate({height: min}, {duration: 50, easing: 'swing'}); |
| 59 | input_panel.addClass('fixed'); |
| 60 | } |
| 61 | } |
| 62 | |
| 63 | |
| 64 | function move_input_panel(step: number) { |
no test coverage detected
searching dependent graphs…