Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/methodofaction/Method-Draw
/ setInputWidth
Function
setInputWidth
src/js/method-draw.js:195–198 ·
view source on GitHub ↗
(elem)
Source
from the content-addressed store, hash-verified
193
}
194
195
var
setInputWidth =
function
(elem) {
196
var
w = Math.min(Math.max(12 + elem.value.length * 6, 50), 300);
197
$(elem).width(w);
198
}
199
200
// updates the context panel tools based on the selected element
201
Callers
nothing calls this directly
Calls
1
$
Function · 0.85
Tested by
no test coverage detected