Check for widget position relatively to the panel bounds

widget will not be updated if out of bounds