aboutsummaryrefslogtreecommitdiffstatsci
path: root/src/Measure.cs
diff options
context:
space:
mode:
authorJean-Philippe Bruyère <jp_bruyere@hotmail.com>2018-03-04 11:28:09 +0100
committerJean-Philippe Bruyère <jp_bruyere@hotmail.com>2018-03-04 11:28:09 +0100
commit27a85f2d4e9987ac1809199e280e17a36d68c783 (patch)
tree48a15efb23c45724f0d44a0c01582f037c3acaee /src/Measure.cs
parent5bcd45c3ccc34edc68188a3acdb09e742b21aef3 (diff)
crowIde wip, docker wip, stack remove child debug
Diffstat (limited to 'src/Measure.cs')
-rw-r--r--src/Measure.cs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/Measure.cs b/src/Measure.cs
index c88038c6..0374f5d9 100644
--- a/src/Measure.cs
+++ b/src/Measure.cs
@@ -69,6 +69,7 @@ namespace Crow
/// </summary>
public bool IsFixed { get { return Units == Unit.Pixel; }}
public bool IsFit { get { return Value == -1 && Units == Unit.Percent; }}
+ public bool IsRelativeToParent { get { return Value >= 0 && Units == Unit.Percent; }}
#region Operators
public static implicit operator int(Measure m){
return m.Value;