Changed node offset to be calculated from window instead of container. This fixes problems with offset containers.