fixed it like so inside the 'mouseleave' branch:
if ($this.siblings('li.active').offset()) {
left = $this.siblings('li.active').offset().left - ($this.closest('.' + lavalamp).offset().left);
width = $this.siblings('li.active').width();
$this.closest('ul').next('div.floatr').css({
"width": width + "px",
"left": left + "px"
});
}