Hi I'm using SmartGWT 2.5 with GWT Version 2.3
My problem is similar to another problem I found on the forum, but there's an added wrinkle so I thought it might make sense to start another thread. Anyway when I started out my current project I had the issue where 2 scrollbars would appear for a single HTMLPane (that was loading arbitrary web content). The recommended fix was to hide the SmartGWT scrollbar ( htmlContent.setScrollbarSize(0); ) and allow the native IFRAME scrollbar to handle navigating the content. This worked well initially but at this stage in the project I need to start monitoring the scroll position in the web content.
What I'm hoping to do is hide the IFRAME scrollbar and use the SmartGWT one to navigate the content, that way I can use a ScrollHandler to track the position on the page. Is this possible / does anyone have any tips on how to accomplish this?
The second option I see is to monitor the IFRAME position, which I believe I might be able to do with native javascript. The problem here is that because I'm using the HTMLPane in "PAGE" mode I can't know when the page is fully loaded to delve into the DOM, find the IFRAME and attach the handler.
Please let me know if any of these approaches seem viable or if there's another option I haven't thought of.
Thanks in advance!
Cheers,
Alden
My problem is similar to another problem I found on the forum, but there's an added wrinkle so I thought it might make sense to start another thread. Anyway when I started out my current project I had the issue where 2 scrollbars would appear for a single HTMLPane (that was loading arbitrary web content). The recommended fix was to hide the SmartGWT scrollbar ( htmlContent.setScrollbarSize(0); ) and allow the native IFRAME scrollbar to handle navigating the content. This worked well initially but at this stage in the project I need to start monitoring the scroll position in the web content.
What I'm hoping to do is hide the IFRAME scrollbar and use the SmartGWT one to navigate the content, that way I can use a ScrollHandler to track the position on the page. Is this possible / does anyone have any tips on how to accomplish this?
The second option I see is to monitor the IFRAME position, which I believe I might be able to do with native javascript. The problem here is that because I'm using the HTMLPane in "PAGE" mode I can't know when the page is fully loaded to delve into the DOM, find the IFRAME and attach the handler.
Please let me know if any of these approaches seem viable or if there's another option I haven't thought of.
Thanks in advance!
Cheers,
Alden
Comment