Merge pull request #13209 from ZhangMenghe/v3-textfield

[ci skip]textField cc.vertext to cc.p
This commit is contained in:
pandamicro 2015-08-05 15:48:16 +08:00
commit 5faf7a9d76
1 changed files with 3 additions and 3 deletions

View File

@ -29,11 +29,11 @@ var UITextFieldTest = UIScene.extend({
var widgetSize = this._widget.getContentSize();
//init text
this._topDisplayLabel.setString("No Event");
this._topDisplayLabel.setAnchorPoint(cc.vertex2(0.5, -1));
this._topDisplayLabel.setPosition(cc.vertex2(widgetSize.width / 2.0, widgetSize.height / 2.0 + this._topDisplayLabel.getContentSize().height * 1.5));
this._topDisplayLabel.setAnchorPoint(cc.p(0.5, -1));
this._topDisplayLabel.setPosition(cc.p(widgetSize.width / 2.0, widgetSize.height / 2.0 + this._topDisplayLabel.getContentSize().height * 1.5));
this._bottomDisplayLabel.setString("TextField");
this._bottomDisplayLabel.setPosition(cc.vertex2(widgetSize.width / 2.0, widgetSize.height / 2.0 - this._bottomDisplayLabel.getContentSize().height * 3.4));
this._bottomDisplayLabel.setPosition(cc.p(widgetSize.width / 2.0, widgetSize.height / 2.0 - this._bottomDisplayLabel.getContentSize().height * 3.4));
this._bottomDisplayLabel.setColor(cc.color(255, 255, 255, 255));
// Create the textfield