Skip to content

Commit

Permalink
Merge pull request #1353 from jasonwbaxter/master
Browse files Browse the repository at this point in the history
Updated ReverseDSC Sizing on the screen for responsiveness
  • Loading branch information
ykuijs authored Nov 11, 2021
2 parents cd65665 + f399166 commit eddcee4
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 17 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

### Changed

- ReverseDsc
- Changed form Size to dynamic Width
- Change column width to calc /3 of Form.
- Export form is now more dynamic / responsive

## [4.9.0] - 2021-11-06

### Added
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1520,20 +1520,20 @@ function DisplayGUI()
}

#region Global
$firstColumnLeft = 10
$secondColumnLeft = 280
$thirdColumnLeft = 540
$topBannerHeight = 70
#endregion

$Global:liteComponents = @()
$Global:defaultComponents = @()

$padding=20
$form = New-Object System.Windows.Forms.Form
$screens = [System.Windows.Forms.Screen]::AllScreens
$form.Width = ($screens[0].Bounds.Width) / 2
$form.Height = ($screens[0].Bounds.Height) / 2
$form.Width = ($screens[0].Bounds.Width)
$form.Height = ($screens[0].Bounds.Height)

#$form.WindowState = [System.Windows.Forms.FormWindowState]::Maximized
$firstColumnLeft = 1+$padding

$secondColumnLeft = (($screens[0].Bounds.Width) /3)+$firstColumnLeft +$padding
$thirdColumnLeft = (($screens[0].Bounds.Width) /3)+$secondColumnLeft +$padding
$topBannerHeight = 70

$panelMain = New-Object System.Windows.Forms.Panel
$panelMain.Width = $form.Width
Expand All @@ -1554,7 +1554,7 @@ function DisplayGUI()
$panelInformationArchitecture.Left = $firstColumnLeft
$panelInformationArchitecture.AutoSize = $true
$panelInformationArchitecture.Height = 80
$panelInformationArchitecture.Width = 220
$panelInformationArchitecture.Width = (($screens[0].Bounds.Width)/3) -$padding
$panelInformationArchitecture.BorderStyle = [System.Windows.Forms.BorderStyle]::FixedSingle

$align = 0
Expand Down Expand Up @@ -1598,7 +1598,7 @@ function DisplayGUI()
$panelSecurity.Top = $panelInformationArchitecture.Top + $panelInformationArchitecture.Height + 40
$panelSecurity.Left = $firstColumnLeft
$panelSecurity.AutoSize = $true
$panelSecurity.Width = 220
$panelSecurity.Width = (($screens[0].Bounds.Width)/3) -$padding
$panelSecurity.BorderStyle = [System.Windows.Forms.BorderStyle]::FixedSingle

$align = 0
Expand Down Expand Up @@ -1643,7 +1643,7 @@ function DisplayGUI()
$panelSA.Top = $panelSecurity.Top + $panelSecurity.Height + 40
$panelSA.Left = $firstColumnLeft
$panelSA.AutoSize = $true
$panelSA.Width = 220
$panelSA.Width = (($screens[0].Bounds.Width)/3) -$padding
$panelSA.BorderStyle = [System.Windows.Forms.BorderStyle]::FixedSingle

$align = 0
Expand Down Expand Up @@ -1688,7 +1688,7 @@ function DisplayGUI()
$panelSearch.Top = 30 + $topBannerHeight
$panelSearch.Left = $secondColumnLeft
$panelSearch.AutoSize = $true
$panelSearch.Width = 220
$panelSearch.Width = (($screens[0].Bounds.Width)/3) -$padding
$panelSearch.BorderStyle = [System.Windows.Forms.BorderStyle]::FixedSingle

$align = 0
Expand Down Expand Up @@ -1733,7 +1733,7 @@ function DisplayGUI()
$panelWebApp.Top = $panelSearch.Top + $panelSearch.Height + 40
$panelWebApp.Left = $secondColumnLeft
$panelWebApp.AutoSize = $true
#$panelWebApp.Width = 220
$panelWebApp.Width = (($screens[0].Bounds.Width)/3) -$padding
$panelWebApp.BorderStyle = [System.Windows.Forms.BorderStyle]::FixedSingle

$align = 0
Expand Down Expand Up @@ -1779,7 +1779,7 @@ function DisplayGUI()
$panelCustomization.Left = $secondColumnLeft
$panelCustomization.AutoSize = $true
$panelCustomization.Height = 80
$panelCustomization.Width = 220
$panelCustomization.Width = (($screens[0].Bounds.Width)/3) -$padding
$panelCustomization.BorderStyle = [System.Windows.Forms.BorderStyle]::FixedSingle

$align = 0
Expand Down Expand Up @@ -1824,7 +1824,7 @@ function DisplayGUI()
$panelConfig.Top = 30 + $topBannerHeight
$panelConfig.Left = $thirdColumnLeft
$panelConfig.AutoSize = $true
$panelConfig.Width = 400
$panelConfig.Width = (($screens[0].Bounds.Width)/3) -$padding
$panelConfig.BorderStyle = [System.Windows.Forms.BorderStyle]::FixedSingle

$align = 0
Expand Down Expand Up @@ -1869,7 +1869,7 @@ function DisplayGUI()
$panelUPS.Top = $panelConfig.Top + $panelConfig.Height + 40
$panelUPS.Left = $thirdColumnLeft
$panelUPS.AutoSize = $true
$panelUPS.Width = 400
$panelUPS.Width = (($screens[0].Bounds.Width)/3) -$padding
$panelUPS.BorderStyle = [System.Windows.Forms.BorderStyle]::FixedSingle

$align = 0
Expand Down

0 comments on commit eddcee4

Please sign in to comment.