Quantcast
Channel: Cocos Forums - Latest topics
Viewing all articles
Browse latest Browse all 17086

Modifying style of cc.EditBox component

$
0
0

@skquark wrote:

I love the usability of the EditBox, does what I needed, but the text in the box is all the way to the left, touching the side of the box with 0 padding. It looks odd, and I found no properties to edit the padding inside it. You can't even see the blinking cursor when it's empty and focused. Found a way in the regular Cocos editbox to do this:
this.usernameBox.style.paddingLeft = "7px";
However, there's no style option in the cc.EditBox component, and I hope there's something I'm missing, or a workaround since my team is complaining about it. Also a border would be nice, or just css style properties if possible. Pretty sure this would be a question for @owen to know.
Also, seconding that request for setting a tab stop number to switch text fields. For example, you're in the Username box and you naturally want to press Tab to go to the password, and I can't see an easy way. Thanks, and great work guys, CC is starting to mature nicely.

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 17086

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>