aboutsummaryrefslogtreecommitdiffstatsci
path: root/src/Measure.cs
diff options
context:
space:
mode:
authorJean-Philippe Bruyère <jp_bruyere@hotmail.com>2018-02-18 10:53:30 +0100
committerJean-Philippe Bruyère <jp_bruyere@hotmail.com>2018-02-18 10:53:30 +0100
commit53a4e6465e9eed77075be378f520ddc84c79c7fa (patch)
tree0bb75b9a387be72a62616e22d8ca69ca9b6a725a /src/Measure.cs
parent446acf127b5afecf3929c8f6aa65627faab570d4 (diff)
mouse event revamping, fit measure unit change from Pixels to Percent
Diffstat (limited to 'src/Measure.cs')
-rw-r--r--src/Measure.cs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Measure.cs b/src/Measure.cs
index 352ce8ff..c88038c6 100644
--- a/src/Measure.cs
+++ b/src/Measure.cs
@@ -49,7 +49,7 @@ namespace Crow
/// <summary>
/// Fit on content, this special measure is defined as a fixed integer set to -1 pixel
/// </summary>
- public static Measure Fit = new Measure(-1);
+ public static Measure Fit = new Measure(-1,Unit.Percent);
/// <summary>
/// Stretched into parent client area. This special measure is defined as a proportional cote
/// set to 100 Percents
@@ -67,8 +67,8 @@ namespace Crow
/// <summary>
/// True is size is fixed in pixels, this means not proportional, stretched nor fit.
/// </summary>
- public bool IsFixed { get { return Value > 0 && Units == Unit.Pixel; }}
- public bool IsFit { get { return Value == -1 && Units == Unit.Pixel; }}
+ public bool IsFixed { get { return Units == Unit.Pixel; }}
+ public bool IsFit { get { return Value == -1 && Units == Unit.Percent; }}
#region Operators
public static implicit operator int(Measure m){
return m.Value;