Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

unable to stack objects on top of PDF viewer
gstadter
#1 Posted : Thursday, 27 January 2011 12:36:35 PM(UTC)
Rank: Member

Joined: 2/09/2009(UTC)
Posts: 29

Working with an instance of GSP that is integrated into another .Net app, I am trying to make sure that my main app's menu navigation is always visible.
My problem is that when viewing a PDF, my menu renders on top of the GSP page as expected, but behind the PDF.
Just playing around on a dev/test server, I've even tried adding

position:absolute;z-index:2;

to both the moContainer css and the style info within the iframe in the application/pdf BrowserTemplate in the database.
Does anyone have any suggestions on where else I might look to lower the PDF's z-index?

-Gary Stadter
Roger Martin
#2 Posted : Thursday, 27 January 2011 5:33:05 PM(UTC)
Roger Martin

Rank: Administration

Joined: 3/08/2007(UTC)
Posts: 3,300
Location: Fort Atkinson, WI

I'm not sure. One thought: If lowering the z-index didn't work, how about increasing the z-index of the menu? You may have noticed that GSP's Actions menu renders over the PDF. Using Firebug I see it has a z-index of 1000, but I am not sure that is the solution, since when I changed it to 1 it still appeared over the PDF.
Roger Martin
Creator and Lead Developer of Gallery Server Pro
gstadter
#3 Posted : Thursday, 27 January 2011 5:48:29 PM(UTC)
Rank: Member

Joined: 2/09/2009(UTC)
Posts: 29

Thanks very much for the reply, Roger.
I'd actually already changed the menu's z-index to the theoretical maximum....that still didn't work.
I hadn't dug into it with Firebug yet though, but that is my next step.
I'll report my findings back here.
-Gary
gstadter
#4 Posted : Friday, 28 January 2011 3:19:24 PM(UTC)
Rank: Member

Joined: 2/09/2009(UTC)
Posts: 29

Seems to only be an issue in IE. Looks as expected within FireFox.
Just to double check...
You don't have anything in your source that handles an event(GSP admin menu) that changes the embeded object visibility to hidden when the menu is open, and visible when it's closed, do you?
If you did, that would explain the difference in behavior. If you don't, I'll keep digging.
Thanks,
Gary
Roger Martin
#5 Posted : Friday, 28 January 2011 5:45:07 PM(UTC)
Roger Martin

Rank: Administration

Joined: 3/08/2007(UTC)
Posts: 3,300
Location: Fort Atkinson, WI

No, I don't.
Roger Martin
Creator and Lead Developer of Gallery Server Pro
gstadter
#6 Posted : Wednesday, 2 February 2011 12:07:30 PM(UTC)
Rank: Member

Joined: 2/09/2009(UTC)
Posts: 29

Thank you for checking, Roger.
Unless I am mistaken, which I could be, I believe it is not a z-index setting that is permitting the GSP action menu to appear over an open PDF. I believe it is the OverlayWindowedElements=”true” attribute of the componentart:menu control that is achieving this. All else on the page that adheres to CSS seems to suffer from the behavior of the PDF viewer being presented at the top-most layer, regardless of z-index settings(including .gsp_mnu0…, according to my testing).

I am not implying that this is in any way a bug or defect with GSP. …just seems to be an unfortunate factor of integration, when integrating GSP into another .Net app.
Thanks,
Gary
Roger Martin
#7 Posted : Wednesday, 2 February 2011 12:40:26 PM(UTC)
Roger Martin

Rank: Administration

Joined: 3/08/2007(UTC)
Posts: 3,300
Location: Fort Atkinson, WI

It seems to me that whatever trick the menu control is doing to force itself over the PDF is also available to you. The hard part is figuring it out.
Roger Martin
Creator and Lead Developer of Gallery Server Pro
Rss Feed  Atom Feed
Users browsing this topic
Guest
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.