Expand my Community achievements bar.

Problem about Filling a Textfield with a Certain Color

Avatar

Former Community Member

Hi. My name Jaeho.

I have a problem. This is it.

After I fill a textfield with Yellow, the textfield's margins are changed. 

Hm... It's so difficult to explain this.

This is a normal situation.

2.JPG

I just enter the year and fill the two textfield(2 right side textfield) with yellow.  

1.JPG

this is the code.

4.JPG

This is not correct code. But through this style, I fill the textfields with yellow.

but after that, I enter the information of month and day.

3.JPG

The information of year is higher than the others.

I think my explanation is not enough to understand.

but I want you to help me. It doesn't matter any advices.

Thanks.

1 Reply

Avatar

Level 10

Hi Jaeho,

For the border change, try a loop to change each edge individually:

for (var i=0; i<4; i++) {

     this.ui.oneOfChild.border.getElement("edge",i).color.value = "255,255,128";

}

In relation to the fill, try:

this.ui.oneOfChild.border.fill.color.value = "255,255,128";

Check the alignment of the textfields, but I suspect that the 2001 is higher becuase of the way you are setting the edge in one hit. Also mat sure that the boder is set to a solid line.

See examples on page 2 of this example: http://assure.ly/ewrLMo.

Hope that helps,

Niall