check is_popup before applying the affix classed