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: { Component.onCompleted: {
width = 330; width = 300 + 30; // That 30 is extra regardless the qty of items shown
height = 330; height = 300 + 30;
x=Window.innerWidth - width; x=Window.innerWidth - width;
} }
@ -60,10 +60,10 @@ Item {
function fromScript(message) { function fromScript(message) {
switch (message.type) { switch (message.type) {
case "allButtonsShown": 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; break;
case "inactiveButtonsHidden": case "inactiveButtonsHidden":
modesbar.height = 100 + 10; modesbar.height = 300 + 30;
break; break;
default: default:
break; break;