MCPcopy Index your code
hub / github.com/SortableJS/Sortable / setRect

Function setRect

src/utils.js:528–534  ·  view source on GitHub ↗
(el, rect)

Source from the content-addressed store, hash-verified

526
527
528function setRect(el, rect) {
529 css(el, 'position', 'absolute');
530 css(el, 'top', rect.top);
531 css(el, 'left', rect.left);
532 css(el, 'width', rect.width);
533 css(el, 'height', rect.height);
534}
535
536function unsetRect(el) {
537 css(el, 'position', '');

Callers

nothing calls this directly

Calls 1

cssFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…