Correzioni

This commit is contained in:
Annamaria Sassi
2026-01-27 16:51:26 +01:00
parent f18f2bb05a
commit 3f96d71c30
10 changed files with 98 additions and 97 deletions
+15 -12
View File
@@ -279,20 +279,23 @@ namespace WebWindowComplex.Compo
/// <returns></returns>
private async Task ChangeTypeDimension()
{
CurrSashDim.bDimensionLight = !CurrSashDim.bDimensionLight;
if (CurrSashDim.bDimensionLight)
if (CurrSashDim.SelMeasureType.Equals(MeasureTypes.ABSOLUTE))
{
CurrSashDim.dDimension = CurrSashDim.dDimension -
CurrSashDim.ElementDimensionList.ElementAt(1).dDimension -
CurrSashDim.ElementDimensionList.ElementAt(3).dDimension;
CurrSashDim.bDimensionLight = !CurrSashDim.bDimensionLight;
if (CurrSashDim.bDimensionLight)
{
CurrSashDim.dDimension = CurrSashDim.dDimension -
CurrSashDim.ElementDimensionList.ElementAt(1).dDimension -
CurrSashDim.ElementDimensionList.ElementAt(3).dDimension;
}
else
{
CurrSashDim.dDimension = CurrSashDim.dDimension +
CurrSashDim.ElementDimensionList.ElementAt(1).dDimension +
CurrSashDim.ElementDimensionList.ElementAt(3).dDimension;
}
await EC_UpdateSash.InvokeAsync(CurrSashGroup);
}
else
{
CurrSashDim.dDimension = CurrSashDim.dDimension +
CurrSashDim.ElementDimensionList.ElementAt(1).dDimension +
CurrSashDim.ElementDimensionList.ElementAt(3).dDimension;
}
await EC_UpdateSash.InvokeAsync(CurrSashGroup);
}
/// <summary>