Adds functionality for min/max screen size and fixes bug for element width calculation.