1
0
forked from 0ad/0ad

revert last commit / 39dd5329cc

Misscommunication if this was the right move or not.

Leave the size as it was until someone has time to fix all buttons at
once.

This was SVN commit r26987.
This commit is contained in:
marder 2022-06-24 16:41:53 +00:00
parent 39dd5329cc
commit a6c1d5bbb9

View File

@ -1,7 +1,7 @@
function distributeButtonsHorizontally(button, captions) function distributeButtonsHorizontally(button, captions)
{ {
const y1 = "100%-60"; const y1 = "100%-46";
const y2 = "100%-20"; const y2 = "100%-18";
switch (captions.length) switch (captions.length)
{ {
case 1: case 1:
@ -12,9 +12,9 @@ function distributeButtonsHorizontally(button, captions)
button[1].size = "50%+5 " + y1 + " 100%-18 " + y2; button[1].size = "50%+5 " + y1 + " 100%-18 " + y2;
break; break;
case 3: case 3:
button[0].size = "18 " + y1 + " 33%-3 " + y2; button[0].size = "18 " + y1 + " 33%-5 " + y2;
button[1].size = "33%+3 " + y1 + " 66%-3 " + y2; button[1].size = "33%+5 " + y1 + " 66%-5 " + y2;
button[2].size = "66%+3 " + y1 + " 100%-18 " + y2; button[2].size = "66%+5 " + y1 + " 100%-18 " + y2;
break; break;
} }
} }