Page 1 of 1

toolbar dropdowns wronly positioned

Posted: Thu May 29, 2014 6:49 am
by Craig
The toolbar dropdowns are wronly positioned when the report viewer (or one of its parent) is contained in a relative positioned container.

For example:

Code: Select all

<br><br><br><br><br><br><br><br>
<div style="position:relative">
 <cc1:StiWebViewer />
</div>
The problem is in this JS code of the MenuShowEvent function. If the position is relative in a parent, its topoffset gets added to the top variable which is used to position the dropdown
...
if (p.style.position != "absolute" && p.style.position != "fixed" && (p.currentStyle == null || (p.currentStyle.position != "absolute" && p.currentStyle.position != "fixed")))
{
left += p.offsetLeft;
top += p.offsetTop;
}

Re: toolbar dropdowns wronly positioned

Posted: Thu May 29, 2014 12:45 pm
by Alex K.
Hello,

The issue is fixed.
In source code you can change the following code:

Code: Select all

if (p.style.position != "absolute" && p.style.position != "fixed" && p.style.position != "relative" && (p.currentStyle == null || (p.currentStyle.position != "absolute" && p.currentStyle.position != "fixed")))
{
...
Thank you.

Re: toolbar dropdowns wronly positioned

Posted: Wed Jun 04, 2014 12:40 am
by Craig
Is this available in the prelease version?

Re: toolbar dropdowns wronly positioned

Posted: Wed Jun 04, 2014 5:46 am
by Alex K.
Hello,

Yes, this fix will be available in the next prerelease build in this week.

Thank you.

Re: toolbar dropdowns wronly positioned

Posted: Sat Jun 14, 2014 6:07 am
by Craig
I am using 2014.2.1907.0 released today and the problem still exists.

Re: toolbar dropdowns wronly positioned

Posted: Mon Jun 16, 2014 6:43 am
by Alex K.
Hello,

We couldn't reproduce this bug.
Please send us a sample project which reproduce the issue for analysis.

Thank you.

Re: toolbar dropdowns wronly positioned

Posted: Sat Jun 21, 2014 5:17 pm
by Craig
It's fixed now in 2014.2.1910

Re: toolbar dropdowns wronly positioned

Posted: Sun Jun 22, 2014 2:25 pm
by Andrew
Dear Craig,

Great! Thank you for letting us know about this.