Answered
contentHeight calculation issue
I have a large flow (about 90k) with a good mixture of text,
images and links.
I have a scrollbar that I am using in conjunction with a single controller/container sprite attached to a text area to view the text.
After the flow is loaded, and I compose/updateallcontianers, I set the max of the scrollbar to:
bar.maxScrollPosition = cont.contentHeight-textArea.height;
(I also tried bar.maxScrollPosition = cont.contentHeight as well)
Almost always, the scrollbar ends up having a much larger number than the actual contentHeight.
When the text area resizes, it recalculates all of this, and after a couple of restores and maximizes to the browser, the max scroll position and the contentHeight are in sync.
I tried using composePosition instead of compose, and that had no effect. I tried using composePosition after compose and that had no effect.
I am using Gumbo 5032.
Is this a bug?
I can post code if necessary.
Thanks,
Tim
I have a scrollbar that I am using in conjunction with a single controller/container sprite attached to a text area to view the text.
After the flow is loaded, and I compose/updateallcontianers, I set the max of the scrollbar to:
bar.maxScrollPosition = cont.contentHeight-textArea.height;
(I also tried bar.maxScrollPosition = cont.contentHeight as well)
Almost always, the scrollbar ends up having a much larger number than the actual contentHeight.
When the text area resizes, it recalculates all of this, and after a couple of restores and maximizes to the browser, the max scroll position and the contentHeight are in sync.
I tried using composePosition instead of compose, and that had no effect. I tried using composePosition after compose and that had no effect.
I am using Gumbo 5032.
Is this a bug?
I can post code if necessary.
Thanks,
Tim
