Updated data empty label code to handle window resizing.