Correzioni
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user