on 26-05-2012 04:54 PM
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.
26-05-2012 05:23 PM - edited 26-05-2012 05:24 PM
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).
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を一度ログアウトし、再度ログインしてください。


Website ©2013 Sony Computer Entertainment Europe
All content, game titles, trade names and/or trade dress, trademarks, artwork and associated imagery are trademarks and/or copyright material of their respective owners. All rights reserved. [more info]
%%http://community.eu.playstation.com/t5/Announcements/Beta-Trial-Information/td-p/11386362
best_shooter.png%%http://community.eu.playstation.com/t5/Announcements/Introducing-Best-of-PlayStation/td-p/13741979
best_driver.png%%http://community.eu.playstation.com/t5/Announcements/Introducing-Best-of-PlayStation/td-p/13741979
best_performer.png%%http://community.eu.playstation.com/t5/Announcements/Introducing-Best-of-PlayStation/td-p/13741979
best_footballer.png%%http://community.eu.playstation.com/t5/Announcements/Introducing-Best-of-PlayStation/td-p/13741979
best_fighter.png%%http://community.eu.playstation.com/t5/Announcements/Introducing-Best-of-PlayStation/td-p/13741979
best_creator.png%%http://community.eu.playstation.com/t5/Announcements/Introducing-Best-of-PlayStation/td-p/13741979
best_action_player.png%%http://community.eu.playstation.com/t5/Announcements/Introducing-Best-of-PlayStation/td-p/13741979
dev2.png%%http://community.eu.playstation.com/t5/Website-and-Forum-Help-Feedback/Producer-and-Developer-Ranks/td-p/18407352
trophy.gif%%http://community.eu.playstation.com/t5/Website-and-Forum-Help-Feedback/The-Community-Awards-FAQ/td-p/18407096
PSlogoSM.png%%http://community.eu.playstation.com/t5/Website-and-Forum-Help-Feedback/Online-Support-Coordinator-rank/td-p/18414870