Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

in resizing the page, side bar goes under the main content (sometimes) #52

Open
zahrasa opened this issue Feb 25, 2018 · 2 comments
Open
Labels

Comments

@zahrasa
Copy link

zahrasa commented Feb 25, 2018

Hi!
First, thank you for your code. when i was searching, i end up with the plugin results. finally i find it just here.
About the problem, sometimes in inspect element when i change the width of the page suddenly the sidebar goes under the main content or sticks to the border of the page. totally size of side bar ruins.
ps: i use bootstrap version 4
i really need your help.

@BenMorel
Copy link
Contributor

Hi, can you give a reproducible example?

@zahrasa
Copy link
Author

zahrasa commented Feb 26, 2018

<section class="container">
<div class="row"> 
<div class="scroll col-xl-3 col-md-4 d-none d-md-block right-side" style="padding-left: 6px;
    padding-right: 3.8px;">
<div class="theiaStickySidebar">
   <div class="red" style="background-color:red ; height:1000px">right side bar
   Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
   </div>      
</div>
</div>


<!-- main content-->
<div class="scroll col-xl-6 col-md-8 col-sm-12 col-12 post-area">  
<div class="theiaStickySidebar">
 <div class="blue" style="height:3000px ; background-color:blue"></div>
  </div>   
    </div>
    <!--end of end of main content -->
  
 
<div class="scroll col-xl-3 d-none d-xl-block left-sidebar" style="padding-left:3.8px ; padding-right:6px">
     <div class="theiaStickySidebar"> 
     <div class="yellow" style="background-color:yellow ; height:600px">left side bar
     Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
      </div>
   </div>
</div>

</div>
</section>



<div class="container">
<div class="row">
<div class="col-sm-12 d-none d-md-block">
<div class="orange" style="background-color:orange ; height:1000px"></div>
</div>
</div>

</div>

and

<script>        
            $(document).ready(function() {
                $('section.container .scroll').theiaStickySidebar();
            });
        </script>

P.S: i use inspect element in chrome and choose ipad mini. then i scroll down till the end of page and click the rotate button and then scroll up. in this case the red side bar moves right and left and makes me crazy.

@liviucmg liviucmg added the bug label Jul 18, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants