1
0
mirror of https://gitlab.com/kelteseth/ScreenPlay.git synced 2024-09-15 06:52:34 +02:00

Remove topmargin after confirming that it was indeed never necessary. Nobody saw that!

This commit is contained in:
Elias Steurer 2019-10-28 18:23:24 +01:00
parent c7d93b3fae
commit 30017db8d5

View File

@ -117,44 +117,6 @@ Rectangle {
id: imgCover
anchors {
top: parent.top
topMargin: {
return 0;
if(desktopProperties.windowsVersion >= 1903){
var ratio = window.width / window.height
ratio = Math.round(ratio * 10) / 10
print("size: ",window.width,window.height,ratio)
// 4:3
if (ratio === 1,3) {
print("4:3")
}
// 16:10
if (ratio === 1,6) {
print("16:10")
}
// 16:9
if (ratio === 1,7) {
print("16:9")
var margin = window.height / 9
//margin = 140
print(margin)
return margin
}
// 21:9
if (ratio === 2,3) {
print("21:9")
return -((window.height / 9) / 3)
}
// 32:9
if (ratio === 3,5) {
print("32:9")
}
} else {
return 0;
}
}
left: parent.left
right: parent.right
}