Correzione conversione dimensione in proporzionale
This commit is contained in:
@@ -1241,7 +1241,8 @@ namespace WebWindowComplex.Models
|
||||
{
|
||||
adList.Add(new AreaDimension(it.dDimension, it.SelMeasureType, it.Parent));
|
||||
}
|
||||
foreach (var elem in split.ElemDimHorizList)
|
||||
int minSubArea = split.ElemDimHorizList.Min(x=>x.nSubArea);
|
||||
foreach (var elem in split.ElemDimHorizList.Where(x=>x.nSubArea == minSubArea))
|
||||
{
|
||||
widthGlass = widthGlass - elem.dDimension;
|
||||
}
|
||||
@@ -1250,7 +1251,8 @@ namespace WebWindowComplex.Models
|
||||
}
|
||||
case MeasureTypes.PERCENTAGE:
|
||||
{
|
||||
foreach (var elem in split.ElemDimHorizList)
|
||||
int minSubArea = split.ElemDimHorizList.Min(x => x.nSubArea);
|
||||
foreach (var elem in split.ElemDimHorizList.Where(x => x.nSubArea == minSubArea))
|
||||
{
|
||||
dim = dim - elem.dDimension;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user