From 7cc7d63066a5e3ea1e4257ec44d770e7b2e00b61 Mon Sep 17 00:00:00 2001 From: Kohsuke Kawaguchi Date: Fri, 3 Feb 2012 11:28:57 +0000 Subject: [PATCH] Left/right position needs to be adjusted ... because the positioning is fixed. Perhaps it's better to let the CSS class name control if it's left-sticky or right-sticky. --- war/src/main/webapp/scripts/hudson-behavior.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/war/src/main/webapp/scripts/hudson-behavior.js b/war/src/main/webapp/scripts/hudson-behavior.js index 20255abe4b..03603e9038 100644 --- a/war/src/main/webapp/scripts/hudson-behavior.js +++ b/war/src/main/webapp/scripts/hudson-behavior.js @@ -1333,6 +1333,7 @@ var hudsonRules = { sticker.style.position = "fixed"; sticker.style.bottom = Math.max(0, viewport.bottom - pos.bottom) + "px" + sticker.style.left = Math.max(0,pos.left-viewport.left) + "px" } // react to layout change @@ -1362,6 +1363,7 @@ var hudsonRules = { sticker.style.position = "fixed"; sticker.style.top = Math.max(0, pos.top-viewport.top) + "px" + sticker.style.left = Math.max(0,pos.left-viewport.left) + "px" } // react to layout change -- GitLab