MCPcopy Create free account
hub / github.com/DTStack/molecule / getContentSize

Function getContentSize

src/workbench/workbench.tsx:79–89  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

77 };
78
79 const getContentSize = () => {
80 if (!sidebar.hidden && !auxiliaryBar.hidden) return splitPanePos;
81
82 if (sidebar.hidden) {
83 return auxiliaryBar.hidden
84 ? [0, '100%', 0]
85 : [0, 'auto', splitPanePos[2]];
86 }
87
88 return [splitPanePos[0], 'auto', 0];
89 };
90
91 const getContentSashes = () => {
92 if (!sidebar.hidden && !auxiliaryBar.hidden) return true;

Callers 1

WorkbenchViewFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected