scholarslab / NeatlineWaypoints

Add an item-browser tray to Neatline exhibits.
4 stars 1 forks source link

Waypoints box fighting with Layer Selector popup #3

Open waynegraham opened 10 years ago

waynegraham commented 10 years ago

From jenbartle https://github.com/scholarslab/Neatline/issues/327

Hi-- When using the Waypoints widget, the Layer Selector popup box works as expected the first time only. After that, it is pushed behind the the Waypoints box and cannot be used again (it will open and close, but you cannot select a different layer a second time because the popup is pushed behind the Waypoints box. [Omeka v.2.2.2; Neatline v.2.3.0; Neatline Waypoints v.2.0.2.] Thanks! Jen

waynegraham commented 10 years ago

@jenbartle Which browser are you using (just to set up failing test case)?

jenbartle commented 10 years ago

It happens in both FFox and Chrome.

davidmcclure commented 10 years ago

Hey @jenbartle - What version of Neatline? We made a change to the layer switcher in 2.3 that fixed a problem that would cause the widget to get hidden below the waypoints container when a Google layer was activated (long story). It sounds like you might be hitting something else, though I can't replicate it. Is there a live link to the exhibit?

davidmcclure commented 10 years ago

I just looked into this, and it turns out to be a rather tricky problem. It happens when a Google layer is activated, which changes the markup structure of the map and create a new z-index stacking context. I actually found a way to clobber some styles in the Google API in a way that fixes this problem, but not without messing up lots of other stuff (the Google tiles start to slide over and occlude other elements on the page, etc).

@waynegraham, this, I guess, is the sort of thing that made the OL developers want to abandon Google entirely, and I suppose can't really blame them. Probably best to shelve this problem until we do the OL3 or Leaflet migration, which will likely fix this automatically.