Aggiunti tipi di misure (absolut, proportional, percentage) per sashDimension

This commit is contained in:
Annamaria Sassi
2025-11-10 15:22:04 +01:00
parent 1d3edf121c
commit 6b06ec861e
6 changed files with 280 additions and 83 deletions
+9 -11
View File
@@ -46,13 +46,13 @@ namespace WebWindowComplex.Models
}
}
public bool bIsPercentage
{
get
{
return m_bIsPercentage;
}
}
//public bool bIsPercentage
//{
// get
// {
// return m_bIsPercentage;
// }
//}
public bool bIsSashVertical
{
@@ -128,7 +128,7 @@ namespace WebWindowComplex.Models
// aggiungo area Sash di default
for (var SplitIndex = m_SashList.Count; SplitIndex <= value - 1; SplitIndex++)
{
SashList.Add(new SashDimension(dNewDimension, true, this, SplitIndex + 1));
SashList.Add(new SashDimension(dNewDimension, MeasureTypes.PERCENTAGE, this, SplitIndex + 1));
}
}
else if (value < m_SashList.Count)
@@ -804,7 +804,7 @@ namespace WebWindowComplex.Models
dNewDimension = dLastDimension / (Qty + 1 - nSashQty);
// aggiungo area Sash di default
for (var SplitIndex = m_SashList.Count; SplitIndex <= Qty - 1; SplitIndex++)
SashList.Add(new SashDimension(dNewDimension, true, this, SplitIndex + 1));
SashList.Add(new SashDimension(dNewDimension, MeasureTypes.PERCENTAGE, this, SplitIndex + 1));
}
else if (Qty < m_SashList.Count)
{
@@ -864,8 +864,6 @@ namespace WebWindowComplex.Models
private bool m_bIsMeasureGlass;
private bool m_bIsPercentage = true;
private bool m_bIsSashVertical;
private bool m_bSashBottomRail;