MCPcopy Create free account
hub / github.com/breck7/scroll / adjustBlocker

Function adjustBlocker

external/.datatables.js:19431–19450  ·  view source on GitHub ↗
(side, end, el)

Source from the content-addressed store, hash-verified

19429 // ASSUMING that the class remains the same
19430 if (this.s.dt.settings()[0]._fixedColumns !== undefined) {
19431 var adjustBlocker = function (side, end, el) {
19432 if (el === undefined) {
19433 var blocker = $("div.dtfc-" + side + "-" + end + "-blocker")
19434
19435 el = blocker.length === 0 ? null : blocker.clone().css("z-index", 1)
19436 }
19437
19438 if (el !== null) {
19439 if (headerMode === "in" || headerMode === "below") {
19440 el.appendTo("body").css({
19441 top: end === "top" ? header.offset.top : footer.offset.top,
19442 left: side === "right" ? bodyLeft + bodyWidth - el.width() : bodyLeft
19443 })
19444 } else {
19445 el.detach()
19446 }
19447 }
19448
19449 return el
19450 }
19451
19452 // Adjust all blockers
19453 this.dom.header.rightBlocker = adjustBlocker("right", "top", this.dom.header.rightBlocker)

Callers 1

.datatables.jsFile · 0.85

Calls 2

$Function · 0.70
cloneMethod · 0.45

Tested by

no test coverage detected