]> O.S.I.I.S - jp/crow.git/commitdiff
0.9.1-beta, reset cache enabled by default (perf)
authorJean-Philippe Bruyère <jp_bruyere@hotmail.com>
Mon, 6 Jul 2020 10:27:49 +0000 (12:27 +0200)
committerJean-Philippe Bruyère <jp_bruyere@hotmail.com>
Mon, 6 Jul 2020 10:27:49 +0000 (12:27 +0200)
Crow/src/Widgets/PrivateContainer.cs
Crow/src/Widgets/Widget.cs
Directory.Build.props
Samples/HelloWorld/main.cs
Samples/common/ui/Interfaces/Stack/StretchedInFit4.crow
Samples/common/ui/Interfaces/Stack/StretchedInFit5.crow

index c8e3dfdb1b010c2c6749347b22496252b09a8666..415d45d21cae64daa1840635f87b35b3abd0ebb1 100644 (file)
@@ -125,10 +125,12 @@ namespace Crow
                                switch (layoutType) {
                                case LayoutingType.Width:
                                        if (Width == Measure.Fit && child.Width.IsRelativeToParent)
+                                               //child.Width = Measure.Fit;
                                                contentSize.Width = child.measureRawSize (LayoutingType.Width);
                                        break;
                                case LayoutingType.Height:
                                        if (Height == Measure.Fit && child.Height.IsRelativeToParent)
+                                               //child.Height = Measure.Fit;
                                                contentSize.Height = child.measureRawSize (LayoutingType.Width);
                                        break;
                                }
index b93e98689e44a6cc9548c19244dc7c7729b4e563..04eadf8d62c08c7eec8b6d255bc8358587358d0b 100644 (file)
@@ -502,7 +502,7 @@ namespace Crow
                /// If enabled, resulting bitmap of graphic object is cached
                /// speeding up rendering of complex object. Default is enabled.
                /// </summary>
-               [DesignCategory ("Behavior")][DefaultValue(false)]
+               [DesignCategory ("Behavior")][DefaultValue(true)]
                public virtual bool CacheEnabled {
                        get { return cacheEnabled; }
                        set {
index 98e14228cae40f999f4c26c068083474257d643a..9e62cfede3f0f938d646793ab752db3346dffeae 100644 (file)
@@ -7,7 +7,7 @@
                <Authors>Jean-Philippe Bruyère</Authors>           
                <LangVersion>7.2</LangVersion>
                
-               <CrowVersion>0.9.0</CrowVersion>
+               <CrowVersion>0.9.1</CrowVersion>
                <CrowPackageVersion>$(CrowVersion)-beta</CrowPackageVersion>
                <CrowStbSharp>true</CrowStbSharp>
        </PropertyGroup>
index 1aa90bbec7128e5f6e0e99861293e2bbe66839d9..743419ee01f9ce021e46780c097fc997f70d3871 100644 (file)
@@ -11,8 +11,6 @@ namespace HelloWorld
                        using (Interface app = new Interface ()) {
                                app.Initialized += (sender, e) => (sender as Interface).Load ("#HelloWorld.helloworld.crow");
                                app.Run ();
-
-                               DbgLogger.save (app);
                        }
                }
        }
index 8026983a9ea43bd251a488cac71fda600cb2fdcb..2c0b77213a58735398f04ed1f0a34637e30429aa 100644 (file)
@@ -2,9 +2,9 @@
 <Container Background="DimGrey" Margin="10" Width="Fit" Height="Fit" >
        <Popper Width="Stretched" Margin="10" Background="RoyalBlue">
                <Container Width="Fit" Height="Fit" Margin="10" Background="Blue">
-                       <Container Width="Stretched" Margin="10" Background="Yellow">
-                               <Container Width="Stretched" Margin="10" Background="FireBrick">
-                                       <CheckBox Width="Stretched"/> 
+                       <Container  Margin="10" Background="Yellow">
+                               <Container Margin="10" Background="FireBrick">
+                                       <CheckBox/> 
                                </Container>
                        </Container>
                </Container>
index 8dc06c7784a854047205a406778734b47951db19..68078f989011142b76d53ee28028588919aa8ef9 100644 (file)
@@ -3,10 +3,10 @@
        <CheckBox Name="cb"/>
        <CheckBox Name="cb2"/>
        <Container Visible="{²../cb.IsChecked}" Width="Stretched" Margin="10" Background="RoyalBlue"> 
-               <VerticalStack Width="Stretched" Margin="5" Background="Yellow">
-               <VerticalStack Width="Stretched" Margin="5" Background="Teal">
-               <VerticalStack Width="Stretched" Margin="1">
-                       <VerticalStack Width="Stretched" Margin="10" Background="FireBrick">
+               <VerticalStack  Margin="5" Background="Yellow">
+               <VerticalStack Margin="5" Background="Teal">
+               <VerticalStack Margin="1">
+                       <VerticalStack  Margin="10" Background="FireBrick">
                                <Label Text="{./Caption}" Width="Fit" Visible="{²../../../../../../cb2.IsChecked}"/> 
                        </VerticalStack>
                </VerticalStack>