Skip to content

why doesn't this work? #32

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

Open
N6REJ opened this issue Jul 31, 2015 · 1 comment
Open

why doesn't this work? #32

N6REJ opened this issue Jul 31, 2015 · 1 comment

Comments

@N6REJ
Copy link

N6REJ commented Jul 31, 2015

when I use 'html' or 'body" and resize the browser sliding left to right or right to left, nothing happens.

<!-- window resize detection event -->
<script type="text/javascript">
    var topnavbar = <?php echo $topnavbar; ?>;
    var myFunc = function(jQuery) {
    jQuery('body').css('border', '44px solid blue'); 
  };

  jQuery('html').resize(myFunc);
  //jQuery('body').removeResize(myFunc);
</script>

what am I doing wrong?

@bvaughn
Copy link

bvaughn commented Aug 24, 2015

The documentation says:

It uses scroll events on most browsers, and the onresize event on IE10 and below.

My guess is that- since a horizontal resize won't trigger a scroll event- it also doesn't trigger the resize.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants