1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Fixed sidebar uses more than 100% width

Discussion in 'Media Gallery Resolved Bugs' started by Arty, Nov 25, 2014.

  1. Arty

    Arty Well-Known Member

    When width is below maxResponsiveWideWidth, gallery sidebar's width is changed to 100% in xengallery_wrapper.css
    Code:
        .Responsive .xengallerySideBar
         {
           width: 100%;
         }
    
    however it still has 10px right padding from rule for desktop, which causes sidebar to take 100% + 10px width. On default style it doesn't cause any problems because wrapper also has 10px padding, so sidebar going out of its boundaries is not noticed.

    In custom styles where page wrapper doesn't have extra padding on mobile devices sidebar causes horizontal scrollbar. That code in xengallery_wrapper.css should be changed to
    Code:
        .Responsive .xengallerySideBar
         {
           width: 100%;
           padding-right: 0;
         }
    
     
  2. Chris D

    Chris D XenForo Developer Staff Member

    Seems reasonable, changed :)
     
    Arty likes this.

Share This Page