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

Function viewWidth

docs/app/js/sanddance-app.js:142294–142297  ·  view source on GitHub ↗
(view, width1)

Source from the content-addressed store, hash-verified

142292 skip: true
142293};
142294function viewWidth(view, width1) {
142295 var a = view.autosize(), p = view.padding();
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);

Callers 2

initializeResizeFunction · 0.70
ViewFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected