mirror of
https://github.com/microsoft/PowerToys.git
synced 2025-12-16 19:57:57 +01:00
Merge pull request #542 from enricogior/small-screens-support
FZ Editor support for small screens
This commit is contained in:
@@ -27,6 +27,24 @@ namespace FancyZonesEditor
|
||||
{
|
||||
InitializeComponent();
|
||||
DataContext = _settings;
|
||||
if (_settings.WorkArea.Height < 900)
|
||||
{
|
||||
this.SizeToContent = SizeToContent.WidthAndHeight;
|
||||
this.WrapPanelItemSize = 180;
|
||||
}
|
||||
}
|
||||
|
||||
private int _WrapPanelItemSize = 262;
|
||||
public int WrapPanelItemSize {
|
||||
get
|
||||
{
|
||||
return _WrapPanelItemSize;
|
||||
}
|
||||
|
||||
set
|
||||
{
|
||||
_WrapPanelItemSize = value;
|
||||
}
|
||||
}
|
||||
|
||||
private void DecrementZones_Click(object sender, RoutedEventArgs e)
|
||||
|
||||
Reference in New Issue
Block a user