MCPcopy Create free account
hub / github.com/pywebio/PyWebIO / fixed_input_init_height

Function fixed_input_init_height

webiojs/src/ui.ts:36–43  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

34
35
36function fixed_input_init_height() { // 返回当前的输入panel的初始高度
37 const init_fixed_height = Math.max(state.InputPanelInitHeight, 175);
38
39 //80 = #input-container.fixed padding-top + padding-bottom
40 let now_height = input_cards.height() + 80;
41
42 return Math.min(now_height, init_fixed_height);
43}
44
45
46function toggle_input_panel_style(fixed: boolean) {

Callers 1

toggle_input_panel_styleFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…