mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-08 04:07:40 +02:00
[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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user