toolbar dropdowns wronly positioned

Stimulsoft Reports.WEB discussion
Post Reply
Craig
Posts: 29
Joined: Sat May 10, 2014 4:53 pm

toolbar dropdowns wronly positioned

Post 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;
}
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: toolbar dropdowns wronly positioned

Post 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.
Craig
Posts: 29
Joined: Sat May 10, 2014 4:53 pm

Re: toolbar dropdowns wronly positioned

Post by Craig »

Is this available in the prelease version?
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: toolbar dropdowns wronly positioned

Post by Alex K. »

Hello,

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

Thank you.
Craig
Posts: 29
Joined: Sat May 10, 2014 4:53 pm

Re: toolbar dropdowns wronly positioned

Post by Craig »

I am using 2014.2.1907.0 released today and the problem still exists.
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: toolbar dropdowns wronly positioned

Post by Alex K. »

Hello,

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

Thank you.
Attachments
IMG_16062014_094155.png
IMG_16062014_094155.png (53.19 KiB) Viewed 2043 times
IMG_16062014_094131.png
IMG_16062014_094131.png (19.07 KiB) Viewed 2043 times
Craig
Posts: 29
Joined: Sat May 10, 2014 4:53 pm

Re: toolbar dropdowns wronly positioned

Post by Craig »

It's fixed now in 2014.2.1910
Andrew
Posts: 4109
Joined: Fri Jun 09, 2006 3:58 am

Re: toolbar dropdowns wronly positioned

Post by Andrew »

Dear Craig,

Great! Thank you for letting us know about this.
Post Reply