ryanve / response.js

Responsive design toolkit
http://responsejs.com
Other
801 stars 123 forks source link

Response.resize issue #56

Closed sjerabravo closed 9 years ago

sjerabravo commented 9 years ago

Hi,

I am using response.js to fix some navigation scrollOff issue on a certain breakpoint. Here is how I put it:

Response.create({    
      prop: "width",     
      prefix: "min-width- r src",
      breakpoints: [0, 350, 750, 1000, 1200, 1400, 1600]
});

Response.resize(function(){
      // Adjust scroll offset for hover links
      if(Response.band(1000)){
          scrollOff = $('.menu').height();
      } else {
          scrollOff = 0;
      }
});

The problem is that Response.resize doesn't take effect when page loads.

Thanks!

sjerabravo commented 9 years ago

Hi, I found where the problem was and fix it. Anyway thanks!

ryanve commented 9 years ago

@sjerabravo Glad you got it fixed. Rock on.