/* This Source Code Form is subject to the terms of the Mozilla Public *License,v.2.0.IfacopyoftheMPLwasnotdistributedwiththis
* file, You can obtain one at <http://mozilla.org/MPL/2.0/>. */
function hasTopOffset(el) { // adding 10px helps account for cases where the tab might be offset by // styling such as selected tabs which don't have a border. return el.getBoundingClientRect().top > tabTopOffset + 10;
}
const hiddenSources = []; for (let i = 0; i < openedSources.length; i++) { const element = sourceTabEls[i]; if (element && hasTopOffset(element)) {
hiddenSources.push(openedSources[i]);
}
} return hiddenSources;
}
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.