NRA Posted December 4, 2018 Share Posted December 4, 2018 Hi, I use the Scroll Viewer element since last week and since yesterday it was having a trouble you can see in its proper sample https://www.babylonjs-playground.com/#13CF95 Thanks Quote Link to comment Share on other sites More sharing options...
Dad72 Posted December 4, 2018 Share Posted December 4, 2018 Works here: https://www.babylonjs-playground.com/#13CF95#4 addToWindow has been renamed with addControl to match the other elements Quote Link to comment Share on other sites More sharing options...
NRA Posted December 5, 2018 Author Share Posted December 5, 2018 @Dad72, This way its do not work with scroll bars? Quote Link to comment Share on other sites More sharing options...
NRA Posted December 5, 2018 Author Share Posted December 5, 2018 @Dad72, This are the correct sample https://www.babylonjs-playground.com/#3EF49E because I am using the "Adding an Adjustable TextBlock Window (Special Case)" Quote Link to comment Share on other sites More sharing options...
Dad72 Posted December 5, 2018 Share Posted December 5, 2018 addToWindow has been renamed with addControl to match the other elements . But it seems that every letter goes to the line. This is the same problem that I had to report yesterday on the button, but that seems to be also on the scrollView PG with addControl : https://www.babylonjs-playground.com/#3EF49E#6 Quote Link to comment Share on other sites More sharing options...
Guest Posted December 5, 2018 Share Posted December 5, 2018 It is actually working https://www.babylonjs-playground.com/#3EF49E#7 The textWrapping was wrong (and you have to set the text to resizeToFit to actually use the scroll space) Also for some reasons text width and height was set Dad72 1 Quote Link to comment Share on other sites More sharing options...
Dad72 Posted December 5, 2018 Share Posted December 5, 2018 In fact the documentation is not up to date to take into account the changes for the scrollView All the PGs of this page have this problem. I saw that it is fix, but not yet send in the documentation site. Quote Link to comment Share on other sites More sharing options...
Guest Posted December 5, 2018 Share Posted December 5, 2018 yes working on it Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.