Binary01
18th February 2016, 17:05
Hiii everyOne,
See the code below:
Item{
width: 600
height: 500
Rectangle{
width: parent.width
height: 400
color: "#710909"
anchors.bottom: parent.bottom
Flickable{
anchors.fill: parent
contentWidth: parent.width
contentHeight: parent.height*3
Rectangle {
id: GreenRectangle
x: 200
y: 106
width: 200
height: 200
color: "green"
}
}
}
}
Why the object GreenRectangle exceeds the limit of Flickable ... see image : 11719
Any solution ?
See the code below:
Item{
width: 600
height: 500
Rectangle{
width: parent.width
height: 400
color: "#710909"
anchors.bottom: parent.bottom
Flickable{
anchors.fill: parent
contentWidth: parent.width
contentHeight: parent.height*3
Rectangle {
id: GreenRectangle
x: 200
y: 106
width: 200
height: 200
color: "green"
}
}
}
}
Why the object GreenRectangle exceeds the limit of Flickable ... see image : 11719
Any solution ?