I have a fluid div with relative positioning. Inside this div I have a timeline which consists of several labels indicating time. When scrollbar appears I need to refresh the positioning of timeline. But the only event I can think of is:
$(window).resize(function(event) {
...
});
and it doesn't fire. It fires only if I press, for example, f12 in chrome in order to open development tools. But if I get scrollbar in natural way (because a lot of content) I can't figure out how to catch this event