[CLOSED] [1.0] PDF Viewer in Tab

  1. #1

    [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
  2. #2

    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
  3. #3

    RE: [CLOSED] [1.0] PDF Viewer in Tab

    No luck with those two statements.

    I will try to put together a sample for you :)
  4. #4

    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).
  5. #5

    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)
    <input id="xfocus" class="x-grid3-focus"/>
    - add the following listener to the TabPanel
    <BeforeTabChange Handler="Ext.get('xfocus').focus();"/>
  6. #6

    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.]
  7. #7

    RE: [CLOSED] [1.0] PDF Viewer in Tab

    Yes fixed, thank you :)

Similar Threads

  1. Crystal Report Viewer is not showing?
    By sadeque in forum 1.x Help
    Replies: 6
    Last Post: Nov 10, 2011, 3:43 PM
  2. Thumbnail Viewer
    By walle in forum 1.x Help
    Replies: 13
    Last Post: Dec 09, 2010, 8:15 AM
  3. Custom Report Viewer
    By harinarayanan123 in forum 1.x Help
    Replies: 0
    Last Post: Aug 19, 2010, 10:47 AM
  4. [CLOSED] Image Viewer
    By cobiscorp in forum 1.x Legacy Premium Help
    Replies: 3
    Last Post: Jul 28, 2010, 10:28 AM
  5. [CLOSED] [1.0] Examples Viewer in Firefox
    By randy85253 in forum 1.x Legacy Premium Help
    Replies: 4
    Last Post: Nov 12, 2009, 4:17 AM

Posting Permissions