[CLOSED] [1.0] PDF Viewer in Tab
Hi,
In my application I have a TabPanel, the first tab in this panel has a button which launches a new tab for which the content is loaded using auto load. This new tab/page contains a PDF viewer control(http://www.winnovative-software.com/pdf-viewers.aspx) which is essentially an object/embed tag (the normal Adobe in browser PDF object).
If I click with the mouse into the PDF viewer to give it focus (say to scroll through the document) and then switch to the first tab and then back to the tab containing the PDF viewer, the PDF viewer vanishes from view leaving just an empty white tab.
I have tried playing with the hideMode tag of the tabs but this hasn't made any difference.
Just wondering if you might know any work arounds for this problem? I should also state that this only seems to occur in IE - I have tested with FF and Chrome and they both seem fine.
Thanks
RE: [CLOSED] [1.0] PDF Viewer in Tab
Hi,
It is difficult to say anything concrete without example (do you able create online example?)
I can suggest to try the following things
- set LayoutOnTabChange="true" for the TabPanel
- set HideMode="Offsets" for the tab with pdf
RE: [CLOSED] [1.0] PDF Viewer in Tab
No luck with those two statements.
I will try to put together a sample for you :)
RE: [CLOSED] [1.0] PDF Viewer in Tab
I have a sample application hosted:
http://frs.innogistic.co.uk/publish/tabs.aspx
Steps to reproduce:
1. Click 'Create Tab' (New Tab Opens)
2. Click into PDF document and scroll about (the purpose is just to give the PDF viewer focus).
3. Click 'Button Tab' (Switches Tab)
4. Click 'PDF Tab'
If you don't carry out step 2 then switching tabs does not lose the PDF object.
I can also email this project to you if you require.
IE Version: 8.0.7600.16385 (Windows 7 Machine).
RE: [CLOSED] [1.0] PDF Viewer in Tab
Hi,
Can you try the following?
- insert the following tag to the page (i think that position can be as you like, i added to end of the asp.net form)
Code:
<input id="xfocus" class="x-grid3-focus"/>
- add the following listener to the TabPanel
Code:
<BeforeTabChange Handler="Ext.get('xfocus').focus();"/>
RE: [CLOSED] [1.0] PDF Viewer in Tab
Sorry for the delay in response (weekend). I applied the changes this morning and had an error because it couldn't find xfocus using Ext.get().
[EDIT: Sorry I've just realised what I was doing wrong, I will try to see if that fixes it.]
RE: [CLOSED] [1.0] PDF Viewer in Tab