PDA

View Full Version : ManagedIFrame getscroll always returns 0



ilomedia
27 Jul 2010, 1:33 PM
Hi all,

Yes this in another "getscroll always returns 0 post"...
I've tried what is written here http://www.sencha.com/forum/showthread.php?40986-get-scroll&highlight=getscroll and there http://www.sencha.com/forum/showthread.php?94986-Panel-getScroll-always-0&highlight=getscroll and whatever i try getScroll always returns 0 for me.

Is there a known bug with ManagedIFrame and getscroll?

if no, how come something like this always returns 0? :


var vIFrame = new Ext.ux.ManagedIFrame.Panel({
id:'htmlTemplateFrame',
autoScroll: true,
defaultSrc: htmlTemplate,
title:'HTML template',
margins: '35 0 0 0',
height: 500,
});

var viewport = new Ext.Panel({
renderTo: 'extjs-iframe',
items: [vIFrame,footer,notes]
});

// this always returns 0 :(
vIFrame.addListener(
'scroll', function(frameEl) { console.log(frameEl.getScroll()); }
);

ilomedia
30 Jul 2010, 6:59 AM
Any idea?

my project is almost ready and i'm still stuck with this problem.

By the way it is not a commercial project but something i do for the TYPO3 community, you can have a look here : http://www.youtube.com/watch?v=duW6Pwc8ts8

help us guys, it is for a good cause ;)