Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
beyaz committed Mar 30, 2024
1 parent 521500c commit 4374dab
Show file tree
Hide file tree
Showing 9 changed files with 11 additions and 15 deletions.
2 changes: 1 addition & 1 deletion ReactWithDotNet.WebSite/Components/DemoPanel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ Element createSourceCode()
return new fieldset(Border("1px solid #dee2e6"), WidthFull)
{
new legend{new img{Src(Asset("csharp.svg")), Width(25), Height(20)}},
new FlexColumn(AlignItemsFlexStart,WidthFull, HeightMaximized)
new FlexColumn(AlignItemsFlexStart,WidthFull, HeightFull)
{
new CSharpCodePanel{ Code = CSharpCode}
}
Expand Down
4 changes: 2 additions & 2 deletions ReactWithDotNet.WebSite/HelperApps/CSharpPropertyMapper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ protected override Element render()
},
style =
{
HeightMaximized,
HeightFull,
MinHeight(200),
BorderRadius(3),
Border("1px solid #d9d9d9"),
Expand All @@ -67,7 +67,7 @@ protected override Element render()
},
style =
{
HeightMaximized,
HeightFull,
MinHeight(200),
BorderRadius(3),
Border("1px solid #d9d9d9"),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1012,7 +1012,7 @@ static string UpperCaseFirstChar(string str)

if (name.Equals("Height", StringComparison.OrdinalIgnoreCase) && value == "100%")
{
return success("HeightMaximized");
return success("HeightFull");
}
if (name.Equals("boxShadow", StringComparison.OrdinalIgnoreCase))
{
Expand Down
2 changes: 1 addition & 1 deletion ReactWithDotNet.WebSite/MainWindow.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ public class MainWindow : PureComponent
{
protected override Element render()
{
return new div(WidthFull, HeightMaximized)
return new div(WidthFull, HeightFull)
{
new MainPageHeader(),

Expand Down
2 changes: 1 addition & 1 deletion ReactWithDotNet.WebSite/Pages/PageHelperApps.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ protected override Element render()
}
},

creatElement() + HeightMaximized + WidthFull
creatElement() + HeightFull + WidthFull
};

Element creatElement()
Expand Down
4 changes: 2 additions & 2 deletions ReactWithDotNet/FC.cs
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,7 @@ public class MainWindow : PureComponent
{
protected override Element render()
{
return new div(WidthFull, HeightMaximized)
return new div(WidthFull, HeightFull)
{
new ParentChildEventTest(),
Expand Down Expand Up @@ -518,7 +518,7 @@ class TraceAndBindingContainerComponent : Component
protected override Element render()
{
return new FlexColumn(WidthFull, HeightMaximized)
return new FlexColumn(WidthFull, HeightFull)
{
BindingSample(7),
Expand Down
6 changes: 1 addition & 5 deletions ReactWithDotNet/Mixin.9.Height.Weight.cs
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ partial class Mixin
/// <summary>
/// height: 100%
/// </summary>
public static StyleModifier h_full = HeightMaximized;
public static StyleModifier h_full = HeightFull;

/// <summary>
/// width: 100%
Expand All @@ -211,10 +211,6 @@ partial class Mixin
/// </summary>
public static StyleModifier HeightFull => Height("100%");

/// <summary>
/// height: 100%
/// </summary>
public static StyleModifier HeightMaximized => Height("100%"); // todo: remove and update heightMax

/// <summary>
/// width: 100%
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ protected override Element render()
{
BorderRadius(5),
WidthFull,
HeightMaximized
HeightFull
},
children =
{
Expand Down
2 changes: 1 addition & 1 deletion ReactWithDotNet/UIDesigner/ReactWithDotNetDesigner.cs
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,7 @@ Element createElement()
{
id = "ComponentPreview",
src = "/ReactWithDotNetDesignerComponentPreview",
style = { BorderNone, WidthFull, HeightMaximized },
style = { BorderNone, WidthFull, HeightFull },
title = "Component Preview"
};
}
Expand Down

0 comments on commit 4374dab

Please sign in to comment.