It is common for a person’s ankles to swell while flying. Often this is harmless and goes away on its own. In rare cases, ankle swelling may be a sign of deep vein thrombosis (DVT), which is more serious and requires medical treatment.
Source: Medical News Today