提交 69835e0f 编写于 作者: K Kohsuke Kawaguchi

Additional 'inside' class allows pre-allocation of the context menu space

上级 8b8ea1c7
......@@ -35,7 +35,7 @@ THE SOFTWARE.
${build.displayName}
</td>
<td style="padding-right:0">
<a class="tip model-link tl-tr" href="${link}">
<a class="tip model-link tl-tr inside" href="${link}">
<i:formatDate value="${build.timestamp.time}" type="both" dateStyle="medium" timeStyle="medium"/>
</a>
</td>
......
......@@ -58,4 +58,9 @@
position: absolute;
visibility: hidden;
cursor: pointer;
z-index: 999;
}
A.model-link.inside {/* additional 'inside' class allows pre-allocation of the context menu space */
padding-right: 16px;
}
\ No newline at end of file
......@@ -100,10 +100,12 @@ var breadcrumbs = (function() {
* DOM node to attach this selector to.
*/
menuSelector.show = function(target) {
var xy = YAHOO.util.Dom.getXY(target);
var xy = Dom.getXY(target);
if ($(target).hasClassName("inside"))
xy[0] -= this.offsetWidth; // show the menu selector inside the text
xy[0] += target.offsetWidth;
xy[1] += target.offsetHeight/2 - this.offsetHeight/2;
YAHOO.util.Dom.setXY(this, xy);
Dom.setXY(this, xy);
this.target = target;
this.style.visibility = "visible";
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册