Skip to content

Instantly share code, notes, and snippets.

@nrlnishan
Created February 16, 2018 05:03
Show Gist options
  • Save nrlnishan/fc0afe907d0aea75736d9641664c79fa to your computer and use it in GitHub Desktop.
Save nrlnishan/fc0afe907d0aea75736d9641664c79fa to your computer and use it in GitHub Desktop.
Content Hugging & Compression Resistance
1. Content Hugging Property:
- This priority defines whether the content size should increase beyond its intrinsic size.
- Content Hugging :: Content doesnot want to grow.
Horizontal Hugging: Higher priority means that content width doesnot want to grow beyond its intrinsic width.
Vertical Hugging: Higher priority means that content height doesnot want to grow beyond its intrinsic height.
2. Content Compression Resistance
- This priority defines whether the content size should decrease beyond its intrinsic size.
- Content Compression Resistance :: Content doesnot want to shrink
Horizontal Compression Resistance: Higher priority means that the content width doesnot want decrease beyond its intrinsic width.
Vertical Compression Resistance: Higher priority means that the content height doesnot want to decrease beyond its intrinsic height.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment