Fix popup on hidden graphs and value area on resize/history change