Commit 6db75ee4 authored by Tt's avatar Tt

区域缩小

parent b3c1211b
......@@ -1461,8 +1461,8 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 900,
"height": 700
"width": 700,
"height": 500
},
"_anchorPoint": {
"__type__": "cc.Vec2",
......@@ -1474,7 +1474,7 @@
"ctor": "Float64Array",
"array": [
-28.536,
-390.472,
-420.6680000000001,
0,
0,
0,
......@@ -1512,7 +1512,7 @@
"_left": 0,
"_right": 0,
"_top": 840.472,
"_bottom": 59.52800000000002,
"_bottom": 129.33199999999994,
"_verticalCenter": 0,
"_horizontalCenter": 0,
"_isAbsLeft": true,
......
......@@ -262,7 +262,7 @@ cc.Class({
return;
}
const rectOption = optionNode.getBoundingBox();
const tartRect = cc.rect(0, 0, box.width, box.height)
const tartRect = cc.rect(box.x - box.width / 2, box.y, box.width, box.height)
if (!cc.Intersection.rectRect(tartRect, rectOption)) {
cc.tween(optionNode)
......
Markdown is supported
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