Fix drawing when no rows are maximized