- Cambiata gestione inizializzazione dati
- Aggiunto reset shape nell'aggiunta sashGroup - Tolta chiamatareset dict nel cambiare shape split
This commit is contained in:
@@ -123,11 +123,14 @@ namespace WebWindowComplex.Compo
|
||||
currSplit = CurrSplit
|
||||
};
|
||||
_ = EC_ReqResetDict.InvokeAsync(new DataUpdateRes { req = LayoutConst.DataAction.ResetDimElem });
|
||||
// Se la shape selezionata è grid o custom, richiede reset shape
|
||||
if (value > 2)
|
||||
_ = EC_ReqResetDict.InvokeAsync(new DataUpdateRes { req = DataAction.ResetDictShape });
|
||||
if (SearchSash(CurrSplit))
|
||||
_ = EC_ReqResetDict.InvokeAsync(new DataUpdateRes { req = DataAction.ResetHwOpt });
|
||||
if(!(CurrSplit.ParentArea.ParentArea is Sash))
|
||||
{
|
||||
// Se la shape selezionata è grid o custom, richiede reset shape
|
||||
if (value == (int)SplitShapes.GRID || value == (int)SplitShapes.CUSTOM)
|
||||
_ = EC_ReqResetDict.InvokeAsync(new DataUpdateRes { req = DataAction.ResetDictShape });
|
||||
if (SearchSash(CurrSplit))
|
||||
_ = EC_ReqResetDict.InvokeAsync(new DataUpdateRes { req = DataAction.ResetHwOpt });
|
||||
}
|
||||
_ = EC_ReqElement.InvokeAsync(CurrSplit);
|
||||
_ = EC_UpdateSplit.InvokeAsync(args);
|
||||
}
|
||||
|
||||
@@ -169,6 +169,7 @@ namespace WebWindowComplex.Compo
|
||||
{
|
||||
FrameWindow.AddFirstSash();
|
||||
await EC_ReqResetDict.InvokeAsync(new DataUpdateRes { req = LayoutConst.DataAction.ResetDimElem });
|
||||
await EC_ReqResetDict.InvokeAsync(new DataUpdateRes { req = LayoutConst.DataAction.ResetDictShape });
|
||||
var args = new DataUpdateFrame()
|
||||
{
|
||||
currFrame = FrameWindow,
|
||||
|
||||
@@ -1468,21 +1468,6 @@ namespace WebWindowComplex
|
||||
for (int elem = 2; elem <= elemList.Count - 2; elem++)
|
||||
elemList.ElementAt(elem).SetOverlapElement(Window.m_ParameterList.GetValueOrDefault(overlapNameTop + "_Overlap"));
|
||||
elemList.Last().SetOverlapElement(Window.m_ParameterList.GetValueOrDefault(overlapNameSx + "_Overlap"));
|
||||
//bool recalcDim = false;
|
||||
//for(int i = 0; i < elemList.Count; i++)
|
||||
//{
|
||||
// if (!elemList.ElementAt(i).Equals(elemOld.ElementAt(i)))
|
||||
// recalcDim = true;
|
||||
//}
|
||||
//if (recalcDim)
|
||||
//{
|
||||
// Frame frame = sash.ParentWindow.AreaList.First();
|
||||
// if (frame != null)
|
||||
// {
|
||||
// frame.SearchAreaList(frame, frame.AvailWidthArea(), "Width");
|
||||
// frame.SearchAreaList(frame, frame.AvailHeightArea(), "Height");
|
||||
// }
|
||||
//}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
<TargetFramework>net8.0</TargetFramework>
|
||||
<Nullable>enable</Nullable>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<Version>3.1.3.2016</Version>
|
||||
<Version>3.1.3.2411</Version>
|
||||
<Authors>Annamaria Sassi</Authors>
|
||||
<Company>Egalware</Company>
|
||||
<Description>Componente gestione Configurazioni avanzate Window per LUX</Description>
|
||||
@@ -54,6 +54,24 @@
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user