Modificato aggiornamento dimensioni sottoaree
This commit is contained in:
@@ -327,7 +327,27 @@ namespace WebWindowComplex.Models
|
||||
}
|
||||
}
|
||||
foreach(var item in m_Parent.AreaList)
|
||||
item.SearchAreaList(item, dDimension, "Width");
|
||||
{
|
||||
List<AreaDimension> dimList = new List<AreaDimension>();
|
||||
foreach (var itemDim in Parent.SashList)
|
||||
dimList.Add(new AreaDimension(itemDim.dDimension, itemDim.MeasureType, itemDim.Parent));
|
||||
double dim = dDimension;
|
||||
if (!(MeasureType.Equals(MeasureTypes.ABSOLUTE)))
|
||||
{
|
||||
double width = Parent.CalculateWidthArea(frame, frame.AvailWidthArea());
|
||||
dim = ConvertDimension(dimList, MeasureType, MeasureTypes.ABSOLUTE, width, -1, 0);
|
||||
}
|
||||
if (item.AreaList.First() is Split s)
|
||||
{
|
||||
if (s.SplitVertList.Count > 0)
|
||||
{
|
||||
int indexSash = m_Parent.AreaList.IndexOf(item);
|
||||
dim = dim - Parent.SashList.ElementAt(indexSash).ElementDimensionList.ElementAt(1).dDimension
|
||||
- Parent.SashList.ElementAt(indexSash).ElementDimensionList.Last().dDimension;
|
||||
}
|
||||
}
|
||||
item.SearchAreaList(item, dim, "Width");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user