PDA

View Full Version : Scrolling error when creating elements in Container



mithras
6 Nov 2006, 5:01 PM
I think there's a problem, here is what I'm doing:

I'm creating elements using document.createElement(...) and attaching it to a div, which is supposed to be a center from a BorderLayout.



layout = new YAHOO.ext.BorderLayout(document.body, {
center: {
titlebar: false,
autoScroll:true,
tabPosition:'top',
alwaysShowTabs: false,
closeOnTab: false
},
...

}
... more code ...
</script>

... HTML body ...

<div>
<div>..... Here is where the canvas elements are created ....</div>
</div>



The code I'm generating it creates 3 pie charts, each one of them in a Canvas element (I'm using plotkit), and it creates them all, but at the moment of scrolling down, it doesn't show the rest, in other words, it doesn't scroll the page, just the scrollbar itself.

jack.slocum
6 Nov 2006, 5:10 PM
Can you put up a link I can see?

My initial thought reading the post is that the canvas elements are being positioned and therefore don't cause overflow. If that makes sense.