- Posts: 6
- Thank you received: 0
Microsoft Windows Phone 8.1 support ends (13 Jul 2017)
Microsoft has ended support for Windows Phone 8.1
Questions about Windows 8.1, 10, WindowsPhone, Windows UWP
Can I fit the view to page on first render?
11 years 6 months ago #8676
by Gooren
Replied by Gooren on topic Can I fit the view to page on first render?
I think you switched view names:D Otherwise it doesn't make sense. Vertical device orientation = PdfViewVert. In this scenario you want to fit page on width and have bars on top and bottom. In horizontal, you want to fit on width so user has to scroll vertically to see the whole page.
11 years 6 months ago #8677
by igokul
Replied by igokul on topic Can I fit the view to page on first render?
Not really. In portrait I need to use both and have a button to switch between them. PDFViewVert is for continuous scrolling up and down (so fit the width) and still in portrait PDFViewHorz is seeing the whole page (fit width) and swiping left and right between pages,
11 years 6 months ago - 11 years 6 months ago #8678
by Gooren
Replied by Gooren on topic Can I fit the view to page on first render?
In that case i can't help anymore. You have to ask Radaee. In our scenario we have one page = one pdf file. So we have PdfDocument and PdfView for each page. And we are dynamically loading a closing them as user navigates through the pdf reader. And we are happy with fit to height in horizontal orientation and fit to width in vertical device orientation. Swiping is our implementation. I think you should make a ticket for Radaee instead of merely posting on this forum. Higher chance of help bro.
Last edit: 11 years 6 months ago by Gooren.
11 years 6 months ago #8679
by coderox
Replied by coderox on topic Can I fit the view to page on first render?
Thanks to Goreen I made I tiny adjustment to the PDFViewVert vLayout method and changed the following line:
m_scale = ((float)(600 - m_page_gap)) / maxw;
to
m_scale = ((float)(m_w - m_page_gap)) / maxw;
That seems to work perfectly for me at least!
Thanks!
Johan Lindfors
// coderox
m_scale = ((float)(600 - m_page_gap)) / maxw;
to
m_scale = ((float)(m_w - m_page_gap)) / maxw;
That seems to work perfectly for me at least!
Thanks!
Johan Lindfors
// coderox
11 years 6 months ago #8683
by Gooren
Replied by Gooren on topic Can I fit the view to page on first render?
Glad i could help.
11 years 6 months ago - 11 years 6 months ago #8685
by support
Replied by support on topic Can I fit the view to page on first render?
Sorry for late reply.
We're working to fix
Soon we should be able to release a new package.
After that we will actively participate within your discussion.
We're working to fix
I've tried to examine the properites available regarding width and height but it puzzles me that these are occassionally zeroed which means they can't be used with confidence.
Soon we should be able to release a new package.
After that we will actively participate within your discussion.
Last edit: 11 years 6 months ago by support.
Time to create page: 0.400 seconds