diff options
| author | Jean-Philippe Bruyère <jp_bruyere@hotmail.com> | 2018-12-04 14:09:07 +0100 |
|---|---|---|
| committer | Jean-Philippe Bruyère <jp_bruyere@hotmail.com> | 2018-12-04 14:09:07 +0100 |
| commit | 9d381671ec0b1266448eddbf4c4935cdc7d23a9f (patch) | |
| tree | 34e9b4b0296eea8dba03024491934413bcd54083 /src/Measure.cs | |
| parent | a64627699d4919d389522d92032ce4f05704d313 (diff) | |
docking save/restore; use image surfaces as cache for graphic object instead of backend similar which blink too much
Diffstat (limited to 'src/Measure.cs')
| -rw-r--r-- | src/Measure.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Measure.cs b/src/Measure.cs index 0374f5d9..c40c6703 100644 --- a/src/Measure.cs +++ b/src/Measure.cs @@ -31,7 +31,7 @@ namespace Crow /// <summary> /// Measurement unit /// </summary> - public enum Unit { Pixel, Percent, Inherit } + public enum Unit {Undefined, Pixel, Percent, Inherit } /// <summary> /// Measure class allow proportional sizes as well as stretched and fit on content. /// </summary> @@ -114,7 +114,7 @@ namespace Crow public static Measure Parse(string s){ if (string.IsNullOrEmpty (s)) - return Measure.Stretched; + return default(Measure); string st = s.Trim (); int tmp = 0; |