Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

Text object displaying as white box.
Started by kumarks102 Nov 19 2017 07:42 PM

8 replies to this topic
text scrollview widgets
[TOPIC CONTROLS]
This topic has been archived. This means that you cannot reply to this topic.
[/TOPIC CONTROLS]
[modOptionsDropdown]
[/modOptionsDropdown]
[reputationFilter]
[TOPIC: post.html]
#1

kumarks102

[GLOBAL: userInfoPane.html]
kumarks102
  • Enthusiast

  • 71 posts
  • Corona SDK

Hi rob,

 

I have an issue, I am creating a display.newText and i am inserting that in to a scroll View, instead of text i am seeing a white box. 

 

But when i remove it from the scroll view the text looks perfect.

 

 
llocal   myText = display.newText("yuuu", tempX - 50,textY ,self.fontNormal, 35 )
innerChatScrollView1:insert(myText)

Hope i can find some solution as soon as possible.



[TOPIC: post.html]
#2

roaminggamer

[GLOBAL: userInfoPane.html]
roaminggamer
  • Corona Geek

  • 7,613 posts
  • Corona SDK

sample project demoing issue please.  Attach as zip.


Edited by roaminggamer, 20 November 2017 - 10:03 AM.


[TOPIC: post.html]
#3

Rob Miracle

[GLOBAL: userInfoPane.html]
Rob Miracle
  • Moderator

  • 26,534 posts
  • Enterprise

Is that the exact code?  We need to see your full-text creator and your scrollView creation and insertion code. As @roaminggammer suggested it won't hurt to see your demo project with the problem.

 

Rob



[TOPIC: post.html]
#4

roaminggamer

[GLOBAL: userInfoPane.html]
roaminggamer
  • Corona Geek

  • 7,613 posts
  • Corona SDK

@kumarks102,

 

I suggested that you produce a extremely small and simple standalone demo (config.lua, main.lua, and some assets) for these reasons:

  1. It allows you to verify the problem on your own in a simplified setting.  Sometimes when doing this you will find there is no problem, meaning you've made a mistake in your game.
  2. Seeing a small snippet is often not enough context.
  3. We don't have your font file, so if that is part of the issue we can't do any useful debug.

If you provide the requested extremely small and simple standalone demo I will take a look.  I will not attempt to reproduce this on my own, specifically because of #3 above.

 

To attach the zip file, click the 'more reply options' button below.



[TOPIC: post.html]
#5

kumarks102

[GLOBAL: userInfoPane.html]
kumarks102
  • Enthusiast

  • 71 posts
  • Corona SDK

Hi,

 

This problem arises only when i insert the scroll view inside a group. When making a normal scroll view and insert text no issues.



[TOPIC: post.html]
#6

davebollinger

[GLOBAL: userInfoPane.html]
davebollinger
  • Corona Geek

  • 1,373 posts
  • Corona SDK

read up on mask gotchas (clue: innerChatScrollView - is there yet another "outer" one? and of course the text. too many nested?)



[TOPIC: post.html]
#7

Rob Miracle

[GLOBAL: userInfoPane.html]
Rob Miracle
  • Moderator

  • 26,534 posts
  • Enterprise

There are limits to the number of masks that can be used at a time. ScrollView's, if they are not full screen have masks applied. display.newText uses a mask to render the object.  The clue maybe a scrollView inside a scrollView.

 

Rob



[TOPIC: post.html]
#8

kumarks102

[GLOBAL: userInfoPane.html]
kumarks102
  • Enthusiast

  • 71 posts
  • Corona SDK

This is how my code,

 

mainScrollView -> elements -> each element contains another scroll View.

 

All are inserted in to the same group.

 

The problem comes only when i insert the inner scroll view into the Group.



[TOPIC: post.html]
#9

roaminggamer

[GLOBAL: userInfoPane.html]
roaminggamer
  • Corona Geek

  • 7,613 posts
  • Corona SDK

@kumarks102,

 

I suggested that you produce a extremely small and simple standalone demo (config.lua, main.lua, and some assets) for these reasons:

  1. It allows you to verify the problem on your own in a simplified setting.  Sometimes when doing this you will find there is no problem, meaning you've made a mistake in your game.
  2. Seeing a small snippet is often not enough context.
  3. We don't have your font file, so if that is part of the issue we can't do any useful debug.

If you provide the requested extremely small and simple standalone demo I will take a look.  I will not attempt to reproduce this on my own, specifically because of #3 above.

 

To attach the zip file, click the 'more reply options' button below.

 

I will take a look if you do this.




[topic_controls]
[/topic_controls]