Hello,

if the notification is being displayed at the top, is it the desired behaviour, that the notification is being scrolled away with the page, unlike when it is displayed at the bottom, where it remains at a fixed position all the time despite scrolling?

Comments

tr-drupal created an issue. See original summary.

svenryen’s picture

Hi tr-drupal, the intention is to have it remain visible. I'll have a look to see how this can be improved. Thanks for the report.

tr-drupal’s picture

Hi svenryen,

thanks for your help.

Maybe if you are on it, you could consider this case too:
I've tried the module with a theme that supports sticky headers, i.e. once I start to scroll down, a part of the page (the main menu + logo in my case) gets "anchored" at the top and remains there, until I scroll up completely again.

Here the notification wasn't properly displayed (even if the sticky header wasn't active yet). The author of the theme wasn't sure whether it was a problem of the theme or of the module, but gave me this CSS code, which has improved the behavior:

#sliding-popup {height: 60px !important;}

The height would probably need to be configured via settings.

Now it's displayed properly, but is being scrolled away, as I said. This scrolling away happen also with the Bartik theme, so isn't theme related apparently. However, sticky headers might play a role too for your modifications.

svenryen’s picture

Status: Active » Fixed

I have added a checkbox to keep the banner fixed at the top (this could as well have been fixed in theme css by setting the banner position to fixed, but if this helps some site builders, I'm happy to provide the feature.

  • svenryen committed e0a518d on 7.x-1.x
    Issue #2580895 by svenryen: Notification at the top: no fixed position...
svenryen’s picture

Status: Fixed » Closed (fixed)