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

Bootstrap & Chrome #125

Open
alisanie opened this issue Feb 16, 2017 · 10 comments
Open

Bootstrap & Chrome #125

alisanie opened this issue Feb 16, 2017 · 10 comments
Labels

Comments

@alisanie
Copy link

Hi
I'm starting to use BS RTL.I don't have any problem but when I check my project in google chrome nothing show until I scroll page or open inspection.
When I remove bootstrap RTL link from my project everything back to normal.
Any suggestion?

@alisanie
Copy link
Author

Problem Solved!
The jquery that I used was different from the file that is in this package.So we should use same version for better result

@morteza morteza added the bug label Feb 16, 2017
@misamae
Copy link

misamae commented Mar 2, 2017

hi @alisanie I am facing the same issue. Could you please give a bit more details on how you fixed it?

Thanks,

@misamae
Copy link

misamae commented Mar 2, 2017

@alisanie did you use the jquery.min.js that comes with bootstrap-rtl package?

@alisanie
Copy link
Author

alisanie commented Mar 3, 2017

Hi
This is chrome problem with rtl and there is no fix for that. You have to give your page min hieght with css and using jquery or java script to scroll it 1 px. Hope its clear

@misamae
Copy link

misamae commented Mar 3, 2017

Hi,

Thank you for the feedback I did this and still no luck.

$(document).ready(function () {
      $.AdminLTE.layout.fix();
      console.log('fixed AdminLTE');
      window.scrollTo(0, 1);
});

@alisanie
Copy link
Author

alisanie commented Mar 4, 2017

As far as I know its chrome bug on OSX.I fixed the problem on one of my wordpress project .I will share the code after I find it

@misamae
Copy link

misamae commented Mar 4, 2017

Thank you!!!

@alisanie
Copy link
Author

alisanie commented Mar 26, 2017

@misamae hi!I fixed this problem and I want to share it with you.I think this problem is only for gc on mac os.
How to fix it?its really easy.
hide you body in your css and then show it when page load and every thing will work.

/*Add this to your css to hide body */
body {
    display: none;
}

<!-- Add to your html or js file to show your body again -->
  $(window).load(function() {
  // When the page has loaded
  $("body").show()
});

@misamae
Copy link

misamae commented Apr 25, 2017

@alisanie thanks. I will give it a try.

@shadialnamrouti
Copy link

I faced the same problem whenever I use any RTL bootstrap library, so I agree it is a Chrome bug.
I suggest to use this:

$(function(){
       window.scrollBy(0, 1);
       window.scrollBy(0, -1);
       $("body").show();
   });

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

4 participants