We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5fd806a commit df48420Copy full SHA for df48420
extensions/CocoStudio/GUI/Layouts/UILayoutDefine.js
@@ -76,7 +76,7 @@ ccs.Margin = ccs.Class.extend(/** @lends ccs.Margin# */{
76
right: 0,
77
bottom: 0,
78
ctor: function (margin, top, right, bottom) {
79
- if (top === undefined) {
+ if (margin && top === undefined) {
80
this.left = margin.left;
81
this.top = margin.top;
82
this.right = margin.right;
0 commit comments