                         .style("opacity", .9);
                     @tooltip_brush_max.html(@simplifyDate(@brush.extent()[1]))
                         .style("left", (@scales.x(@brush.extent()[1])+@brush_tooltip_offset[0]) + "px")
-                        .style("top", (@svg[0][0].parentElement.offsetHeight + @brush_tooltip_offset[1] + 20) + "px");
+                        .style("top", (offheight + @brush_tooltip_offset[1] + 20) + "px");
 
             )
             .extent([@options.brush.start, @options.brush.end])

class TimeSlider

    # TODO
    #  * Implement a function to fetch dataset information from a WMS / WCS service

            )
            .on('brush', =>
                if (@brush_tootlip)
                    offheight = 0
                    if @svg[0][0].parentElement?
                        offheight = @svg[0][0].parentElement.offsetHeight
                    else
                        offheight = @svg[0][0].parentNode.offsetHeight
                    @options.zoom
                        .scale(@options.lastZoom.scale)
                        .translate(@options.lastZoom.translate)
