FileHelper.RatioFlex Method

Namespace:
Weavy.Core.Helpers
Assembly:
Weavy.Core.dll

RatioFlex(Double, Double, Double, Boolean)

Get the flex properties to resize/scale based on the ratio.

public static string RatioFlex(double ratio, double baseWidth, double maxHeight, bool keepBaseWidthMin = false)

Parameters

ratio
System.Double
baseWidth
System.Double
maxHeight
System.Double
keepBaseWidthMin
System.Boolean

Returns

System.String

The flex properties as CSS styles.