Commit 9649bc00 authored by vikram's avatar vikram
Browse files

adjusted drop area

parent b4e541ef
......@@ -135,7 +135,7 @@ Item {
visible: false
property double botMargin: densityExperimentArea.height/10
height : densityExperimentArea.height - botMargin
width : densityExperimentArea.width/2
width : (densityExperimentArea.width/2) - 50
anchors {
left : densityExperimentArea.left
......@@ -149,14 +149,12 @@ Item {
DropArea {
id : dropArea
property bool sinks: false
anchors.fill:dropAreaRect
onEntered: {
drag.source.opacity = 0.5
}
onDropped: {
sinks = false
droppedObject = drag.source
droppedObject.changePosition(droppedObject.x, droppedObject.y + (height - drag.y - getLiquidBottomToObjectTopHeight(liquidArea.density)))
droppedObject.setState("inBeaker")
......
......@@ -16,7 +16,7 @@ import QtQuick 2.0
property string imgName: "Cotton Ball";
property double weight: 70.00
property double density: 1.54
property int horizontalSpacing: 12
property int horizontalSpacing: 15
property int verticalSpacing: 12
},
......@@ -32,7 +32,7 @@ import QtQuick 2.0
property string imgName: "Gold Nugget";
property double weight: 500.00
property double density: 19.30
property int horizontalSpacing: 5
property int horizontalSpacing: 20
property int verticalSpacing: 7
},
Rectangle { property string imgSource: "images/egg.png";
......@@ -53,7 +53,7 @@ import QtQuick 2.0
property string imgName: "Apple Slice";
property double weight: 50.00
property double density: 0.86
property int horizontalSpacing: 10
property int horizontalSpacing: 20
property int verticalSpacing: 5
},
......
......@@ -87,7 +87,7 @@ Flickable {
DropArea {
id : dropArea
width : cylinderArea.width * 0.6
width : cylinderArea.width - 50
height : cylinderArea.height
anchors {
left : cylinderArea.left
......
......@@ -20,7 +20,7 @@ Item {
DropArea {
id : dropArea
height: weightWin.height - weighingScaleArea.height
width: weighingScaleArea.width * 0.7
width: weighingScaleArea.width - 50
anchors{
bottom : weighingScaleArea.top
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment