Okay
  Public Ticket #3050401
sticky column
Closed

Comments

  •  32
    Tes started the conversation

    Hi there, 

    I have a pop-up on this page when you click on 'Reviews'. In side this pop-up I have  a row with a left column - I made it sticky. After I made it sticky a lot of white space appeared at the top, see attached screenshot. 

    Also, I had a border on the right which disappeared after I made the column sticky. 

    Would it be possible to make the white space go away and get my border back? 

    Thanks in advance. 

    best regards,

    Tes

  •  279
    Noah replied

    Hi Tes,

    We took a look at the page and there isn't any code that is causing the white space at the top or right border to disappear. Might just be a structural thing.

    Can we have the screenshot so that we can compare and try to get it to where it was.

    Thanks.

  •  32
    Tes replied

    Sure! Hereby I send you the screenshot.

  •  8,839
    Tahir replied

    Hey Again,

    Add this into the Custom CSS box in your Salient Theme Options panel (We write all Custom CSS in the Live Browser to ensure accuracy. If you cannot see any changes, make sure there is no red cross in the Custom CSS Box as any syntax error would cause all CSS under that line of code to not show up on the Frontend):

    @media only screen and (min-width: 1000px) {
        .nectar-sticky-column-css.vc_column_container > .n-sticky > .vc_column-inner {
            transform: translateY(-50px);
        }
    }

    Thanks


    ThemeNectar Support Team 

  •  32
    Tes replied

    Hi Tahir, 

    Quick update from my side. I thought it showed well, and it does..on Chrome. On Safari it's different. See the two screenshots attached. Can we do anything about this? 

    Thanks in advance. 

  •  32
    Tes replied

    The attachments..

  •  1,877
    Judith replied

    Hello Tes,

    Please try this css:

    #review {
        margin-bottom: 22px !important;
        top: 26px;
    }

    Thanks.

  •  32
    Tes replied

    Hi Judith, 

    If I do that, it will show a lot of white space on all my columns, see attached. 

    The code from Tahir works fine on Chrome, but we only need a solution for safari and firefox. Would that be possible? Thanks.

  •  8,839
    Tahir replied

    Hey Again,

    Add this into the Custom CSS box in your Salient Theme Options panel (We write all Custom CSS in the Live Browser to ensure accuracy. If you cannot see any changes, make sure there is no red cross in the Custom CSS Box as any syntax error would cause all CSS under that line of code to not show up on the Frontend):

    @media only screen and (min-width: 1000px) {
        .nectar-sticky-column-css.vc_column_container > .n-sticky > .vc_column-inner {
            -webkit-transform: translateY(-50px);
            -moz-transform: translateY(-50px);
            -ms-transform: translateY(-50px);
            -o-transform: translateY(-50px);
            transform: translateY(-50px);
        }
    }

    Thanks


    ThemeNectar Support Team 

  •  32
    Tes replied

    Hey Tahir, 

    Thanks! Only now there is more white space at the top on Chrome browser. Would there be a way to make it -80px only on chrome and -50px on other browsers?

  •  8,839
    Tahir replied

    This should likely have to be changed

    -webkit-transform: translateY(-80px);

    Thanks 


    ThemeNectar Support Team 

  •  32
    Tes replied

    Hi Tahir, 

    Yes, I thought so too, but it changes it on Safari and firefox as well. Or should I add 'important' after the other lines? 

  •  8,839
  •  32
    Tes replied

    Hi Tahir, 

    Thanks. Could you help me by how to apply to it the translateY css? I can't seem to understand it. 

  •  8,839
    Tahir replied

    Hey Again,

    Sorry for the late turn around, we can get overwhelmed sometimes by the number of tickets. 

    Try using this CSS instead:

    @media only screen and (min-width: 1000px) {
        .nectar-sticky-column-css.vc_column_container > .n-sticky > .vc_column-inner >.wpb_wrapper {
            top: -40px !important;
            position: relative;
        }
    }
    

    Best 


    ThemeNectar Support Team 

  •  8,839
    Tahir replied

    Also remove the one provided earlier.

    Thanks 


    ThemeNectar Support Team 

  •  32
    Tes replied

    Hi Tahir, 

    Thanks again. There is still a difference between Safari and Chrome, see attached screenshots. There is too much space in Chrome and too less in Safari.

    And a second problem occurred to me in Safari. When you scroll there is some transparent affect initiated at the top. See third screenshot. 

    Can we solve those problems? 

    Thanks in advance. 

    Best regards,

    Tes

  •  32
    Tes replied

    Update: my cache wasn't activated so it showed old page. The first problem is solved, thanks. 

    The second problem is still active, you view it on safari.

  •  8,839
    Tahir replied

    Hey Again,

    Could you confirm both resolutions on Chrome and Safari are the same as i doubt this is due to the varying screen size and not browser specific.

    Thanks 


    ThemeNectar Support Team 

  •  32
    Tes replied

    Hi Tahir, 

    Yes, I just checked it again to be sure. In safari it shows the 'problem' but not in Chrome. I checked it with the same resolutions (same laptop). 

  •  8,839
    Tahir replied

    Escalating this to the developer for actual device testing.

    Thanks 


    ThemeNectar Support Team 

  •  1,070
    ThemeNectar replied

    Hey Tes,

    I haven't been able to see that Safari-specific issue yet on my end after testing on two different versions of the browser: https://www.dropbox.com/s/16s7yunrn8zuv2i/Screen%20Recording%202022-06-08%20at%2011.56.07%20AM.mov?dl=0

    Can you verify that it's not related to being logged in as an admin?

    Kind regards,

  •  32
    Tes replied

    Thanks for taking a look at this. 

    I can confirm this happens without being logged in as an admin. Would you like me to send a screen recording? It happens only when you scroll up again and it's at the top and you want to scroll further up. 

    Pls let me know If I can do anything to help with this. 

  •  1,070
    ThemeNectar replied

    It sounds like you might be referring to the over-scroll or "scroll bounce" effect, which is a native feature of Safari on scrollable elements that can't be disabled with CSS alone, unfortunately. The sticky column can be contained to the same level as the right-hand chat window by adding the following CSS snippet though:

    .popmake-content .n-sticky {
     contain: paint;
    }
    
  •  32
    Tes replied

    Hi, 

    Thanks. I've added the snippet but it made no difference. Hereby I send you a screen recording: https://we.tl/t-sOS3QSZyou 

    Are we talking about the same thing? 

    Thanks again!

  •  1,070
    ThemeNectar replied

    Hey Tes, yes that's the "overscroll" effect. If you'd like to make the effect more seamless with your design, the "reviews" toolbar would need to be moved into the scrollable area instead of sitting above it so that when the overscroll occurs, the bar moves along with the scrollable area.

  •  32
    Tes replied

    HI, thanks. I understand. It is correct that this overscroll effect is only visible in Safari, and not in Chrome, yes? 


    I do have one other issue. In safari that same pop-up has less white space at the top of the left sticky column compared to the same one in chrome. I've attached both screenshots. 

    Is there a fix for this? I got this css from you guys: 

    @media only screen and (min-width: 1000px) {
        .nectar-sticky-column-css.vc_column_container > .n-sticky > .vc_column-inner >.wpb_wrapper {
            top: -50px !important;
            position: relative;
        }
    }

    Thanks in advance. 

    Best regards. Tes

  •  1,070
    ThemeNectar replied

    Hey Tes, the overscroll should be visible in both on the body (on Mac OS when using a trackpad), but it looks like Safari also enables it for child divs set to overflow: scroll.

    I'm not able to see that spacing difference between Safari/Chrome on my end yet. Can you also verify that it's unrelated to being logged in with the admin toolbar?

    Kind regards,