Convert width and height auto => 0 to auto=>auto. Add an auto-select for 5 wide when there are more than 5 and a multiple of 5

pull/3482/head
Isaac Connor 2022-05-10 18:35:13 -04:00
parent 08cae161f6
commit 97c6c713a1
1 changed files with 3 additions and 1 deletions

View File

@ -138,7 +138,9 @@ foreach ($displayMonitors as &$row) {
if (!$layout_id) {
$default_layout = '';
if (!$default_layout) {
if ((count($monitors) > 4) and (count($monitors)%4 == 0)) {
if ((count($monitors) > 5) and (count($monitors)%5 == 0)) {
$default_layout = '5 Wide';
} else if ((count($monitors) > 4) and (count($monitors)%4 == 0)) {
$default_layout = '4 Wide';
} else if (count($monitors)%3 == 0) {
$default_layout = '3 Wide';