MCPcopy Create free account
hub / github.com/microsoft/SandDance / viewHeight

Function viewHeight

docs/app/js/sanddance-app.js:142298–142301  ·  view source on GitHub ↗
(view, height1)

Source from the content-addressed store, hash-verified

142296 return width1 - (a && a.contains === Padding ? p.left + p.right : 0);
142297}
142298function viewHeight(view, height1) {
142299 var a = view.autosize(), p = view.padding();
142300 return height1 - (a && a.contains === Padding ? p.top + p.bottom : 0);
142301}
142302function initializeResize(view) {
142303 var s = view._signals, w = s[Width], h = s[Height], p = s[Padding];
142304 function resetSize() {

Callers 2

initializeResizeFunction · 0.70
ViewFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected