Correzioni
This commit is contained in:
@@ -317,9 +317,8 @@ namespace WebWindowComplex.Models
|
||||
}
|
||||
else if (s.SashList.First().ElementDimensionList.Count > 0)
|
||||
{
|
||||
if (s.ParentArea is Split split && split.SplitHorizList.Count > 0)
|
||||
dimTot = dimTot + s.SashList.ElementAt(i).ElementDimensionList.First().dOverlap
|
||||
+ s.SashList.ElementAt(i).ElementDimensionList.ElementAt(s.SashList.ElementAt(i).ElementDimensionList.Count() - 2).dOverlap;
|
||||
if (s.ParentArea.ParentArea is Split split && split.SplitHorizList.Count > 0)
|
||||
dimTot = dimTot + s.SashList.ElementAt(i).ElementDimensionList.First().dOverlap + s.SashList.ElementAt(i).ElementDimensionList.ElementAt(s.SashList.ElementAt(i).ElementDimensionList.Count() - 2).dOverlap;
|
||||
if (s.SashBottomRailQty > 0)
|
||||
{
|
||||
foreach (var bottomRail in s.BottomRailElemDimList)
|
||||
@@ -343,12 +342,15 @@ namespace WebWindowComplex.Models
|
||||
if (nameDim.Equals("Width"))
|
||||
{
|
||||
if (s.AreaList.ElementAt(i).AreaList.First() is Sash sash && sash != null)
|
||||
dimTot = dimTot + sash.SashList.Last().ElementDimensionList.ElementAt(1).dOverlap
|
||||
+ sash.SashList.First().ElementDimensionList.Last().dOverlap;
|
||||
dimTot = dimTot + sash.SashList.Last().ElementDimensionList.ElementAt(1).dOverlap + sash.SashList.First().ElementDimensionList.Last().dOverlap;
|
||||
SearchAreaList(node.AreaList.ElementAt(i), dimTot, nameDim);
|
||||
}
|
||||
else
|
||||
{
|
||||
foreach (var item in s.ElemDimHorizList)
|
||||
dimTot = dimTot - item.dDimension;
|
||||
SearchAreaList(node.AreaList.ElementAt(i), s.SplitHorizList.ElementAt(i).CalculateAbsoluteValue(dimList, dimTot), nameDim);
|
||||
}
|
||||
}
|
||||
if (s.SplitVertList.Count > 0 && i < s.SplitVertList.Count)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user