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
parent
08cae161f6
commit
97c6c713a1
|
@ -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';
|
||||
|
|
Loading…
Reference in New Issue