提交 7cc7d630 编写于 作者: K Kohsuke Kawaguchi

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.
上级 ab525c8c
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册