[BUG #7991] - Fixing values when the matchMedia is initialized inside of a resize callback.