On 07/02/2012 12:02, Dimitar Christoff wrote:
On 07/02/2012 11:59, hamburger wrote:
Hi Dimitar,
thats realy georgeous. Thanks a lot.

on more suggestion: a 'refresh' will be good.
(If you change the windows.size by javascript)

Best regards
cheesburger

yeah that's coming - going to expose the methods somewhat.




you should be able to do something like

var SS = new scrollspy({... });

window.resizeTo() ...

SS.scroll();

if that fails, can you build a jsfiddle or case that covers what you do. it may be that we need a reset of SS.active as well as removing all active classes.

something like that may work:

        reset: function() {
            var self = this;
            Array.each(this.links, function(link) {
                link.removeClass(self.options.activeClass);
                self.fireEvent("inactive", link);
            });
            this.active = null;
            this.scroll();
        }

though I fail to see how to test it at the moment. if you can think of anything, feel free to post on the github issues page

https://github.com/DimitarChristoff/mootstrap-scrollspy/issues

best regards

Reply via email to