Roku Developer Program

Developers and content creators—a complete solution for growing an audience directly.
cancel
Showing results for 
Search instead for 
Did you mean: 
joetesta
Level 10

frustrated with incorrect RSG documentation

https://sdkdocs.roku.com/display/sdkdoc/Label
lineSpacing - default is reported as 0
however, testing this, it's not 0.
The default appears to be 10.   Label.height is incorrectly calculated with default linespacing and multiple lines.
This incorrect documentation costs extra development time.   Why is it incorrect, can anything be done - a proactive sweep of RSG docs to fix incorrect things??
aspiring
0 Kudos
5 Replies

Re: frustrated with incorrect RSG documentation

"joetesta" wrote:
https://sdkdocs.roku.com/display/sdkdoc/Label
lineSpacing - default is reported as 0
however, testing this, it's not 0.
The default appears to be 10.   Label.height is incorrectly calculated with default linespacing and multiple lines.
This incorrect documentation costs extra development time.   Why is it incorrect, can anything be done - a proactive sweep of RSG docs to fix incorrect things??

Would also be great to have a property that returns the actual height of the Label when using multiple lines
0 Kudos
joetesta
Level 10

Re: frustrated with incorrect RSG documentation

"marcelo.cabral" wrote:
"joetesta" wrote:
https://sdkdocs.roku.com/display/sdkdoc/Label
lineSpacing - default is reported as 0
however, testing this, it's not 0.
The default appears to be 10.   Label.height is incorrectly calculated with default linespacing and multiple lines.
This incorrect documentation costs extra development time.   Why is it incorrect, can anything be done - a proactive sweep of RSG docs to fix incorrect things??

Would also be great to have a property that returns the actual height of the Label when using multiple lines

LOL my very next post, thanks Marcelo Smiley Happy
aspiring
0 Kudos
Roku Employee
Roku Employee

Re: frustrated with incorrect RSG documentation

"joetesta" wrote:
https://sdkdocs.roku.com/display/sdkdoc/Label
lineSpacing - default is reported as 0
however, testing this, it's not 0.
The default appears to be 10.

How did you get 10 as default value?
If i create a Label in HD app, i see a default of 8 for lineSpacing. In FHD though, i get 12. Just printing it in console, not hard.
0 Kudos
joetesta
Level 10

Re: frustrated with incorrect RSG documentation

I didn't think to try printing it out, just some quick trial and error, perhaps more error Smiley Happy

First I left the default and saw a big space,  then I used linespacing=0 and saw that it was definitely not the default.
Then I tried 5 and it wasn't as big as the default, then I tried 10 and to my eyeballs it looked exactly the same as the default.

In any event, I appreciate your replies and am glad you concur the doc is wrong.

Speaking of which, back to the topic at hand, what's up with all the wrong documentation?  Seems like I've been finding about one problem per day that I work on RSG.  Isn't this stuff in market, how have these not been fixed yet?? 
12 days and nobody has time to stick a dot (• maybe?) on this page to make it correct / less confusing? https://forums.roku.com/viewtopic.php?f ... 60#p564282  
aspiring
0 Kudos
Roku Employee
Roku Employee

Re: frustrated with incorrect RSG documentation

I merged reply on "dotted button" into https://forums.roku.com/viewtopic.php?f ... 57#p565457
0 Kudos