Android - Fix modes bar layout when expanded

This commit is contained in:
Cristian Luis Duarte 2018-02-07 16:26:46 -03:00
parent 8d6d078ea2
commit 8c1a1eba02

View file

@ -25,8 +25,8 @@ Item {
}
Component.onCompleted: {
width = 330;
height = 330;
width = 300 + 30; // That 30 is extra regardless the qty of items shown
height = 300 + 30;
x=Window.innerWidth - width;
}
@ -60,10 +60,10 @@ Item {
function fromScript(message) {
switch (message.type) {
case "allButtonsShown":
modesbar.height = flowMain.children.length * 100 + 10;
modesbar.height = flowMain.children.length * 300 + 30; // That 30 is extra regardless the qty of items shown
break;
case "inactiveButtonsHidden":
modesbar.height = 100 + 10;
modesbar.height = 300 + 30;
break;
default:
break;