diff options
| author | j-p <jp.bruyere@live.be> | 2018-04-14 12:15:08 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-04-14 12:15:08 +0200 |
| commit | 907358fed63b4a89e8dee5184cc9901a7107ab9f (patch) | |
| tree | 18c473a86b553dbe9f08cfe345b6278c71e9594e /src/Measure.cs | |
| parent | 7c735fa149bf23223eda734f19d5547797ca8ac2 (diff) | |
| parent | 5a06966fd4be89263988d0838556b78a7988b5a9 (diff) | |
Merge pull request #40 from jpbruyere/devel
Devel
Diffstat (limited to 'src/Measure.cs')
| -rw-r--r-- | src/Measure.cs | 1 |
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; |