mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-09 20:57:22 +02:00
spelling: adjacent
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>
This commit is contained in:
@@ -461,10 +461,10 @@ namespace FancyZonesEditor
|
|||||||
_resizers.Clear();
|
_resizers.Clear();
|
||||||
}
|
}
|
||||||
|
|
||||||
public bool HasSnappedNonAdjascentResizers(GridResizer resizer)
|
public bool HasSnappedNonAdjacentResizers(GridResizer resizer)
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* Resizers between zones 0,1 and 4,5 are snapped to each other and not adjascent.
|
* Resizers between zones 0,1 and 4,5 are snapped to each other and not adjacent.
|
||||||
* ------------------------------
|
* ------------------------------
|
||||||
* | 0 | 1 |
|
* | 0 | 1 |
|
||||||
* ------------------------------
|
* ------------------------------
|
||||||
@@ -473,7 +473,7 @@ namespace FancyZonesEditor
|
|||||||
* | 4 | 5 |
|
* | 4 | 5 |
|
||||||
* ------------------------------
|
* ------------------------------
|
||||||
*
|
*
|
||||||
* Resizers between zones 0,1 and 2,3 are snapped to each other and adjascent.
|
* Resizers between zones 0,1 and 2,3 are snapped to each other and adjacent.
|
||||||
* ------------------------------
|
* ------------------------------
|
||||||
* | 0 | 1 |
|
* | 0 | 1 |
|
||||||
* ------------------------------
|
* ------------------------------
|
||||||
@@ -484,7 +484,7 @@ namespace FancyZonesEditor
|
|||||||
*
|
*
|
||||||
* Vertical resizers should have same StartColumn and different StartRow.
|
* Vertical resizers should have same StartColumn and different StartRow.
|
||||||
* Horizontal resizers should have same StartRow and different StartColumn.
|
* Horizontal resizers should have same StartRow and different StartColumn.
|
||||||
* Difference between rows or colums should be more than 1.
|
* Difference between rows or columns should be more than 1.
|
||||||
*/
|
*/
|
||||||
foreach (GridResizer r in _resizers)
|
foreach (GridResizer r in _resizers)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -400,7 +400,7 @@ namespace FancyZonesEditor
|
|||||||
GridData.ResizeInfo resizeInfo = _data.CalculateResizeInfo(resizer, delta);
|
GridData.ResizeInfo resizeInfo = _data.CalculateResizeInfo(resizer, delta);
|
||||||
if (resizeInfo.IsResizeAllowed)
|
if (resizeInfo.IsResizeAllowed)
|
||||||
{
|
{
|
||||||
if (_dragHandles.HasSnappedNonAdjascentResizers(resizer))
|
if (_dragHandles.HasSnappedNonAdjacentResizers(resizer))
|
||||||
{
|
{
|
||||||
double spacing = 0;
|
double spacing = 0;
|
||||||
Settings settings = ((App)Application.Current).ZoneSettings;
|
Settings settings = ((App)Application.Current).ZoneSettings;
|
||||||
|
|||||||
Reference in New Issue
Block a user