locked
Hidden ribbon but scrollbar disable - Sharepoint online RRS feed

  • Question

  • I had modified my Master Page in SharePoint Online site for hidden ribbon for non-admin users, but when I enter in the site I can't see left scrollbar. Can you help me?

    Code:

    <div class="ms-belltown-anonShow">
          <div id="ms-designer-ribbon">
                <!--SPM:<%@Register Tagprefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c"%>-->
                <!--MS:<SharePoint:SPSecurityTrimmedControl runat="server" AuthenticationRestrictions="AuthenticatedUsersOnly" Permissions="FullMask" EmitDiv="true">-->
                    <div id="s4-ribbonrow" style="visibility:hidden;display:none"></div>
                <!--SID:02 {Ribbon Snippet}-->
                <!--PS: Inicio de la VISTA PREVIA DE SOLO LECTURA (sin modificar) --><div class="DefaultContentBlock" style="background:rgb(0, 114, 198); color:white; width:100%; padding:8px; height:64px; ">En previsualizaciones reales del sitio, la cinta de SharePoint estará aquí.</div><!--PE: Fin de la VISTA PREVIA DE SOLO LECTURA -->
                <!--ME:</SharePoint:SPSecurityTrimmedControl>-->
          </div>
            <!--MS:<SharePoint:SPSecurityTrimmedControl runat="server" AuthenticationRestrictions="AnonymousUsersOnly">-->
                <!--SPM:<wssucw:Welcome runat="server" EnableViewState="false"/>-->
            <!--ME:</SharePoint:SPSecurityTrimmedControl>-->
        </div>

    Wednesday, July 19, 2017 1:39 PM

All replies

  • Hi David_EDUCO,

    What did you mean “left scrollbar”?

    Please provide the screenshots of the page for this issue.

    Best regards,

    Linda Zhang


    Please remember to mark the replies as answers if they help.
    If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com

    Thursday, July 20, 2017 9:31 AM
  • Hi Linda

              Only left scrollbar and when I disable this script, left scrollbar enable another time

    Thursday, July 20, 2017 10:15 AM
  • Hi David_EDUCO,

    Could you please provide a screenshot of your left scrollbar?

    Try using the following script to see if it works as expected.


    Best Regards,

    Linda Zhang


    Please remember to mark the replies as answers if they help.
    If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com

    Friday, July 28, 2017 2:37 AM
  • I had similar Issue, I added below code to my .css file and it work fine. 

    /*** to get the right scroll bar ***/
    html{

    margin:0 !important;
    }

    /*** to get the bottom scroll bar ***/
    body {
    overflow: visible !important
    }


    Priti Arya

    Friday, July 28, 2017 10:39 AM
  • Hi David_EDUCO,

    This issue occurs because the “#s4-ribbonRow” element is hidden.

    Try using the following commands:

    <div id="ms-designer-ribbon">
    
    <div id="s4-ribbonrow"></div>
    
    <!--MS:<SharePoint:SPSecurityTrimmedControl runat="server" AuthenticationRestrictions="AuthenticatedUsersOnly" Permissions="FullMask" EmitDiv="true">-->
    
          <!--SID:02 {Ribbon Snippet}-->
    
    <!--ME:</SharePoint:SPSecurityTrimmedControl>-->
    
    </div>


    Best Regards,

    Linda Zhang


    Please remember to mark the replies as answers if they help.
    If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com

    • Proposed as answer by Dean_Wang Monday, August 7, 2017 1:20 PM
    Wednesday, August 2, 2017 9:16 AM