diff options
| author | Jean-Philippe Bruyère <jp_bruyere@hotmail.com> | 2020-07-06 12:27:49 +0200 |
|---|---|---|
| committer | Jean-Philippe Bruyère <jp_bruyere@hotmail.com> | 2020-07-06 12:27:49 +0200 |
| commit | 620cdb1cd3f0945ea63365494c3dec0bd6b675f1 (patch) | |
| tree | cb225c862e185302dc8379716010fa75a23faa43 | |
| parent | 819371cd4b13b34a3a3d68e73d2481d1cbb5d1dc (diff) | |
0.9.1-beta, reset cache enabled by default (perf)
| -rw-r--r-- | Crow/src/Widgets/PrivateContainer.cs | 2 | ||||
| -rw-r--r-- | Crow/src/Widgets/Widget.cs | 2 | ||||
| -rw-r--r-- | Directory.Build.props | 2 | ||||
| -rw-r--r-- | Samples/HelloWorld/main.cs | 2 | ||||
| -rw-r--r-- | Samples/common/ui/Interfaces/Stack/StretchedInFit4.crow | 6 | ||||
| -rw-r--r-- | Samples/common/ui/Interfaces/Stack/StretchedInFit5.crow | 8 |
6 files changed, 11 insertions, 11 deletions
diff --git a/Crow/src/Widgets/PrivateContainer.cs b/Crow/src/Widgets/PrivateContainer.cs index c8e3dfdb..415d45d2 100644 --- a/Crow/src/Widgets/PrivateContainer.cs +++ b/Crow/src/Widgets/PrivateContainer.cs @@ -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; } diff --git a/Crow/src/Widgets/Widget.cs b/Crow/src/Widgets/Widget.cs index b93e9868..04eadf8d 100644 --- a/Crow/src/Widgets/Widget.cs +++ b/Crow/src/Widgets/Widget.cs @@ -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 { diff --git a/Directory.Build.props b/Directory.Build.props index 98e14228..9e62cfed 100644 --- a/Directory.Build.props +++ b/Directory.Build.props @@ -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> diff --git a/Samples/HelloWorld/main.cs b/Samples/HelloWorld/main.cs index 1aa90bbe..743419ee 100644 --- a/Samples/HelloWorld/main.cs +++ b/Samples/HelloWorld/main.cs @@ -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); } } } diff --git a/Samples/common/ui/Interfaces/Stack/StretchedInFit4.crow b/Samples/common/ui/Interfaces/Stack/StretchedInFit4.crow index 8026983a..2c0b7721 100644 --- a/Samples/common/ui/Interfaces/Stack/StretchedInFit4.crow +++ b/Samples/common/ui/Interfaces/Stack/StretchedInFit4.crow @@ -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> diff --git a/Samples/common/ui/Interfaces/Stack/StretchedInFit5.crow b/Samples/common/ui/Interfaces/Stack/StretchedInFit5.crow index 8dc06c77..68078f98 100644 --- a/Samples/common/ui/Interfaces/Stack/StretchedInFit5.crow +++ b/Samples/common/ui/Interfaces/Stack/StretchedInFit5.crow @@ -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> |