Pinning Not Done When Logged In

leftquarkleftquark Registered Users, Retired Mod Posts: 3,784 Many Grins
edited April 18, 2014 in Bug Reporting
While testing some CSS tweaks this evening I found what appears to be a bug in the way sections are pinned. I have a header that is supposed to be pinned. When I'm logged in, it does NOT pin to the top properly. When I'm not logged in, it pins properly. I found out why.

Looking at the code for the header we see a subtle difference:

When logged in:
<div class="sm-page-layout-region sm-page-layout-region-header" id=...

When not logged in
<div class="sm-page-layout-region sm-page-layout-region-header [COLOR="Red"]sm-page-layout-region-pinned[/COLOR]" style="width: 1905px;" id=...

So you can clearly see that when a user is not logged in, the correct pinned CSS gets added, but when we are logged in, the pinning does not get added.

Example here: http://leftquark.smugmug.com/2014/Filmstrip-Sample/n-bv6dq/
dGrin Afficionado
Former SmugMug Product Team
aaron AT aaronmphotography DOT com
Website: http://www.aaronmphotography.com
My SmugMug CSS Customizations website: http://www.aaronmphotography.com/Customizations

Comments

  • rainforest1155rainforest1155 Registered Users Posts: 4,566 Major grins
    edited April 18, 2014
    I just replied to your message to the HelpDesk. Pinning is only supported for pages with content that scrolls down, not to the sides. You may have to post on the New SmugMug customization forum to see if there might be a way with CSS to allow for pinning to work in your special case as well.
    Sebastian
    SmugMug Support Hero
  • leftquarkleftquark Registered Users, Retired Mod Posts: 3,784 Many Grins
    edited April 18, 2014
    I just replied to your message to the HelpDesk. Pinning is only supported for pages with content that scrolls down, not to the sides. You may have to post on the New SmugMug customization forum to see if there might be a way with CSS to allow for pinning to work in your special case as well.

    Yes, it appears that you guys appear to be "cute" with how you pin... When the user is logged in, it displays the users admin bar at the top (with things like "Upload, Organize, Customize" and account settings, etc.

    This bar does NOT get pinned, but the header does, IF the user scrolls down. When the user scrolls down far enough, the PINNING code gets added, but only for the persons header, not for the admin bar. The admin bar disappears and the header stays pinned because of some javascript you added to now all of a sudden pin the header.

    I'm not really sure why you didn't bother to pin the admin bar as well. It would have been a lot simpler and I wouldn't have had to do anything fancy.

    None-the-less, I added some code to pin the admin bar and the header when the user is logged in, so I have it working how I want ... I hope.
    dGrin Afficionado
    Former SmugMug Product Team
    aaron AT aaronmphotography DOT com
    Website: http://www.aaronmphotography.com
    My SmugMug CSS Customizations website: http://www.aaronmphotography.com/Customizations
Sign In or Register to comment.