MCPcopy Create free account
hub / github.com/Lobos/react-ui / forceRedraw

Function forceRedraw

src/utils/dom.js:32–39  ·  view source on GitHub ↗
(el)

Source from the content-addressed store, hash-verified

30}
31
32export function forceRedraw (el) {
33 let originalDisplay = el.style.display;
34
35 el.style.display = 'none';
36 let oh = el.offsetHeight;
37 el.style.display = originalDisplay;
38 return oh;
39}
40
41export function withoutTransition (el, callback) {
42 //turn off transition

Callers 1

withoutTransitionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…