fix for "max" not setting visual width on Firefox