Different alignment between web and mobile

Different alignment between web and mobile
0.0 0

#1

Hi @slackmoehrle , @nantas, @jare

I have this display problem, please check below image

They’re captured from same screen, on the left is captured from web and mobile is on the right. I use Label component with vertical alignment center, it’s displayed correctly on web, but on mobile it looks like align to top instead


#2

Hi @trungnt85

I have the same issue with my game, my label text in mobile is centered, but in web is downward, so I did a workaround like below:

// use this for initialization
onLoad: function () {
this.AboutHeaderTextPos();
},
AboutHeaderTextPos:function(){
if(cc.sys.isBrowser){
** this.node.y+=20;**
}
},

Maybe this can help, until it’s fixed in the next version…God Bless…

Sincerely,

Sunday


#3

@luke2125 thanks man, we both know that not best approach but it’s good till the problem fixed in next release


#4

Hi @trungnt85

Yep, agreed…I think, if not mistaken, the next release will be 1.4.2, as you can see from the link below:

God Bless…

Sincerely,

Sunday