Skip to content

Commit

Permalink
Push
Browse files Browse the repository at this point in the history
  • Loading branch information
janfaracik committed Dec 12, 2023
1 parent 4f15690 commit 512b9a1
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 30 deletions.
1 change: 0 additions & 1 deletion war/.eslintrc.js
Expand Up @@ -39,7 +39,6 @@ module.exports = {
findFormParent: "readonly",
fireEvent: "readonly",
Form: "readonly",
getElementOverflowParams: "readonly",
global: "readonly",
Hash: "readonly",
hoverNotification: "readonly",
Expand Down
29 changes: 0 additions & 29 deletions war/src/main/webapp/scripts/hudson-behavior.js
Expand Up @@ -2248,35 +2248,6 @@ function toQueryString(params) {
return query;
}

// eslint-disable-next-line no-unused-vars
function getElementOverflowParams(element) {
// First we force it to wrap so we can get those dimension.
// Then we force it to "nowrap", so we can get those dimension.
// We can then compare the two sets, which will indicate if
// wrapping is potentially happening, or not.

// Force it to wrap.
element.classList.add("force-wrap");
var wrappedClientWidth = element.clientWidth;
var wrappedClientHeight = element.clientHeight;
element.classList.remove("force-wrap");

// Force it to nowrap. Return the comparisons.
element.classList.add("force-nowrap");
var nowrapClientHeight = element.clientHeight;
try {
var overflowParams = {
element: element,
clientWidth: wrappedClientWidth,
scrollWidth: element.scrollWidth,
isOverflowed: wrappedClientHeight > nowrapClientHeight,
};
return overflowParams;
} finally {
element.classList.remove("force-nowrap");
}
}

// get the cascaded computed style value. 'a' is the style name like 'backgroundColor'
function getStyle(e, a) {
if (document.defaultView && document.defaultView.getComputedStyle) {
Expand Down

0 comments on commit 512b9a1

Please sign in to comment.