PDA

View Full Version : panel pdf support



dmillasich
4 Oct 2011, 7:05 PM
Does the Touch library provide iPad support for the display of PDF files in a "Panel"?

I have the following code working in Chrome on a PC, however, on an iPad it does not render the PDF file:



var pdfPanel = new Ext.Panel({
floating: true,
modal: true,
closable:true,
centered: true,
width: '100%',
height: '100%',
styleHtmlContent: false,
scroll: 'vertical',
html:'<iframe src="test.pdf" style="width:100%; height:100%;" frameborder="0"></iframe>',
dockedItems: [{
dock: 'top',
xtype: 'toolbar',
items:[{
text: 'close',
handler: function() {
pdfPanel.hide();
}
}]
}]
});

dmillasich
5 Oct 2011, 8:21 AM
anybody? anything?

ok - i'll go.

after banging my head on this for hours with no apparent result, i accidentally changed the orientation of the iPad i'm testing on - and POP - the pdf file became visible when the hardware switched the view.

has nobody anywhere required the ability to show a PDF file in a Sencha Touch application? am i the only one that has ever tried to do this, or am i the only one whinging about the inability of the API to handle it?

funkyboy
22 Nov 2011, 1:03 AM
but no luck. Content keeps scrolling down automatically, and with no reason.