mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-07 03:36:44 +02:00
[FancyZones]Set better default layout for vertical monitors (#19412)
This commit is contained in:
@@ -22,6 +22,13 @@ namespace FancyZonesEditor.Models
|
|||||||
{
|
{
|
||||||
Window = new LayoutOverlayWindow();
|
Window = new LayoutOverlayWindow();
|
||||||
Settings = new LayoutSettings();
|
Settings = new LayoutSettings();
|
||||||
|
|
||||||
|
// provide a good default for vertical monitors
|
||||||
|
if (monitorSize.Height > monitorSize.Width)
|
||||||
|
{
|
||||||
|
Settings.Type = LayoutType.Rows;
|
||||||
|
}
|
||||||
|
|
||||||
Device = new Device(workArea, monitorSize);
|
Device = new Device(workArea, monitorSize);
|
||||||
|
|
||||||
if (App.DebugMode)
|
if (App.DebugMode)
|
||||||
|
|||||||
Reference in New Issue
Block a user