12
« on: May 07, 15, 06:01:05 PM »
I've created a sortablecollection with a scrollbar, I have the header predefined in the gui so it's not created via HSL. I've noticed that when doing this the cell height defaults to 20, if I create the header via HSL then it resizes the cell to what the correct height should be for my content however I lose the scrollbar.
So, I attempted to get around this, and I called _recalculateAllCollectionRowsHeight() on the GUI, this resized the cells to the correct height but again caused the scrollbar to vanish. So finally I attempted manually setting the cell height just incase something under the hood was being called that I had not yet noticed, I did this via:
ClientArea as NodeRef of Class GUIControl = FindGUIcontrolByName( me, "Container.sortableCollection.clientarea" )
foreach Child in ClientArea.children
child.size.y = 28
.
Again, the cells height changed to what I wanted it to be and again, the scrollbar vanishes.
I'm stumped and about finished for the night, so I figured best to post this on here and hopefully someone can point me in the right direction when I return in the morning before work, or note if in the unlikely event that this is a bug.
Thanks in advance!