mirror of
https://github.com/overte-org/overte.git
synced 2025-04-25 17:35:45 +02:00
Android - Fix modes bar layout when expanded
This commit is contained in:
parent
8d6d078ea2
commit
8c1a1eba02
1 changed files with 4 additions and 4 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue