Modificato aggiornamento dimensioni sottoaree

This commit is contained in:
Annamaria Sassi
2026-02-24 17:45:02 +01:00
parent 940d6de755
commit 36573dfa4e
10 changed files with 232 additions and 87 deletions
+8 -4
View File
@@ -1137,21 +1137,25 @@ namespace WebWindowComplex.Models
}
if (split.ParentArea is Frame frame && split.AreaList.ElementAt(i).AreaList.First() is Sash)
{
string overlapName = string.Join("_", split.ElemDimVertList.First().sName.Split('_').Skip(1)) + "_Top_Overlap";
string overlapName = string.Join("_", split.ElemDimVertList.First().sName.Split('_').Skip(1));
if (overlapName.Equals("Mixed_Split"))
overlapName = overlapName + "_Top_Overlap";
else
overlapName = overlapName + "_Overlap";
if (i == 0)
{
dim = dim + frame.ElementDimensionList.Last().dOverlap
+ Window.m_ParameterList.GetValueOrDefault(overlapName);
+ Window.m_ParameterList.GetValueOrDefault(overlapName);
}
else if (i == split.SplitVertList.Count - 1)
{
dim = dim + frame.ElementDimensionList.ElementAt(1).dOverlap
+ Window.m_ParameterList.GetValueOrDefault(overlapName);
+ Window.m_ParameterList.GetValueOrDefault(overlapName);
}
else
{
dim = dim + Window.m_ParameterList.GetValueOrDefault(overlapName)
+ Window.m_ParameterList.GetValueOrDefault(overlapName);
+ Window.m_ParameterList.GetValueOrDefault(overlapName);
}
}
res = CalculateWidthSashGroup(item, dim, res);