Merge pull request #580 from zilongshanren/fix-label-issues

add missing layout tooltip
This commit is contained in:
Wang Nan
2016-04-11 12:00:01 +08:00
+4 -1
View File
@@ -208,7 +208,7 @@ var Layout = cc.Class({
*/
resizeMode: {
type: ResizeMode,
tooltip: 'i18n:COMPONENT.layout.auto_resize',
tooltip: 'i18n:COMPONENT.layout.resize_mode',
get: function() {
return this._resize;
},
@@ -237,6 +237,7 @@ var Layout = cc.Class({
*/
cellSize: {
default: cc.size(40, 40),
tooltip: 'i18n:COMPONENT.layout.cell_size',
type: cc.Size,
notify: function() {
this._doLayoutDirty();
@@ -253,6 +254,7 @@ var Layout = cc.Class({
*/
startAxis: {
default: AxisDirection.HORIZONTAL,
tooltip: 'i18n:COMPONENT.layout.start_axis',
type: AxisDirection,
notify: function() {
if (this._resize === ResizeMode.CONTAINER && CC_EDITOR && !cc.engine.isPlaying) {
@@ -272,6 +274,7 @@ var Layout = cc.Class({
*/
padding: {
default: 0,
tooltip: 'i18n:COMPONENT.layout.padding',
notify: function() {
this._doLayoutDirty();
},