ShowOOUI将存在OOUI 16 px放在x,y坐标上方 [英] ShowOOUI places the presence OOUI 16 px above x,y coordinates

查看:111
本文介绍了ShowOOUI将存在OOUI 16 px放在x,y坐标上方的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一些javascript代码(如下所示),用于计算我的状态图像的x / y坐标。当IE8黄金信息栏在页面上并且用户在图像上盘旋时,存在OOUI出现在计算的x / y坐标上方16px处。当黄金信息栏关闭且用户再次悬停时,存在OOUI将根据需要直接显示在图像上。

var oouiX = 0,oouiY = 0;
while(obj){
oouiX + = obj.offsetLeft + obj.clientLeft - obj.scrollLeft;
oouiY + = obj.offsetTop + obj.clientTop - obj.scrollTop;
obj = obj.offsetParent;
}
PresenceControlObject.ShowOOUI(temp1,inputType,oouiX,oouiY);

有没有其他人有这个问题? ActiveX在使用x,y坐标时是否可能在其起始位置调整条形?
I have some javascript code (shown below) that calculates the x/y coordinates of my presence image. When the IE8 gold information bar is on the page and the user hovers over the image the presence OOUI appears 16 px above the calculated x/y coordinates. When the gold information bar is closed and the user hovers again, the presence OOUI appears directly over the image as desired. 

var oouiX = 0, oouiY = 0;
while (obj) {
            oouiX += obj.offsetLeft + obj.clientLeft - obj.scrollLeft;
            oouiY += obj.offsetTop + obj.clientTop - obj.scrollTop;
            obj = obj.offsetParent;
}
PresenceControlObject.ShowOOUI(temp1, inputType, oouiX, oouiY);

Has anyone else had this issue? Is it possible that ActiveX is not adjusting for the bar in its starting location when it uses the x,y coordinates?

推荐答案

我有类似的问题如果将缩放级别更改为不同于浏览器的100%,则为oouiX和oouiY坐标。 这听起来有点像一个错误,因为将要计算的坐标看起来是正确的。

I have a similar issue with the oouiX and oouiY coordinates if change the zoom level different to 100% of the browser.  This sounds a bit like a bug because the coordinates which will be calculated are looking correct.

在Sharepoint中也可以找到这种行为,其中将显示OOUI。

This behavior can be also found in Sharepoint where the OOUI will be displayed.

 

 由于帖子不是最新的,我想知道某人是否有针对该问题的解决方案或解决方法?

 Due to the fact that the post is not the latest I'm wondering if someone has a solution or a workaround for that issue?

问丹尼尔


这篇关于ShowOOUI将存在OOUI 16 px放在x,y坐标上方的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆