[FZEditor] Grid layout resizers fixes (#4095)

* Swap resizers on drag
* Update resizers on split if existing split is used
* Fix accuracy error
* Zone ids are ordered
* Cancel merge on other actions
* Split if one of the snapped splitters is dragged
This commit is contained in:
Seraphima Zykova
2020-07-16 12:54:15 +03:00
committed by GitHub
parent 5a590512bd
commit 2282e72d03
9 changed files with 1810 additions and 440 deletions

View File

@@ -21,6 +21,14 @@ namespace FancyZonesEditor
Percent = percent;
}
public RowColInfo(RowColInfo other)
{
Percent = other.Percent;
Extent = other.Extent;
Start = other.Start;
End = other.End;
}
public RowColInfo(int index, int count)
{
Percent = (_multiplier / count) + ((index == 0) ? (_multiplier % count) : 0);