UI Toolkit

Reply

How do I get the gridlistpanel to update and be scrollable?

I have a scene (A) that contains a panel (B). In the panel (B), i have a gridlistpanel (C). I have a button in scene (A) that when clicked, adds a new item to gridlistpanel (C). 

 

If i hard code the gridlistpanel.ItemCount in the gridlistpanel contructor,  i can see all my items in the gridlistpanel and the gridlistpanel is scrollabe. but since i wanted the item # to be dynamic depending upon my button presses, i overrode the onupdate function for gridlistpanel to add a +1 to the gridlistpanel.ItemCount. This works and i cane see the extra item appear in the gridlistpanel, but the gridlistpanel is no longer scrollable.

 


Please use plain text.

Re: How do I get the gridlistpanel to update and be scrollable?

[ Edited ]

nvm. i figured it out. when i hard coded the itemcount, i would use a number like 100, so since that was more items than that could be displayed in the gridlistpanel of height 1200, the gridpanel would scroll and attempting to scroll upward would show the tweening/stretching effect of  the listpanelitems.

 

but if the itemcount is below the gridlistpanelheight, there is no need to scroll, so the tweening/streching effect isn't enabled.

 

is that a bug? i don't know, but for me personally i think the tweening/stretching effect should show if you are at either boundary (top or bottom).

Please use plain text.
Announcements

Welcome to the PlayStation Mobile Developer Forums


This is a community for the discussion of technical topics with other developers and SCE engineers. Posting ideas/requests are also appreciated. Join the discussion!

PlayStation®Mobile開発者フォーラムでは世界中の開発者の皆様と一緒に、議論や情報交換が可能です。SCEも議論に参加し、皆様の開発をサポートします。アイデアやリクエストも大歓迎です。ぜひご参加ください。

PSM Developer Registration (for free) on PSM DevPortal is required to post on the forum.
Please sign out then sign in again to the forum and PSM DevPortal after you have completed the registration.

フォーラムへ投稿をするにはPSM DevPortalへの登録(無料)が必要です。
登録後はフォーラムと PSM DevPortalを一度ログアウトし、再度ログインしてください。