Forum Discussion

joetesta's avatar
joetesta
Roku Guru
8 years ago

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??

4 Replies

  • "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
  • "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 πŸ™‚
  • "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.
  • I didn't think to try printing it out, just some quick trial and error, perhaps more error πŸ™‚

    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