Microsoft Windows Phone 8.1 support ends (13 Jul 2017)

Microsoft has ended support for Windows Phone 8.1

Questions about Android development and PDF

Vertical Scroll after zoom using diferentes page size flag

More
IP: 200.236.249.149 6 years 5 months ago #14595 by thiagopelikan
Hi,
I'm using dual layout with different page size flag and when I zoom in my page It dont scrolls up and down. The same issue does not occurs with I chance different page size flag to false.

Is there anything I could do to fix this?

Tks
Thiago
More
IP: 200.236.249.149 6 years 5 months ago - 6 years 5 months ago #14597 by thiagopelikan
What I mean is that if I zoom in from the center of the page I can't reach bottom or top of that page by scrolling up or down. It seems like scrolling vertically(using different page size flag) is blocked by radaae lib.
Last edit: 6 years 5 months ago by thiagopelikan.
More
IP: 111.196.245.212 6 years 5 months ago - 6 years 5 months ago #14598 by radaee
if you mean after zoom, page edge not align on screen for dual page.
plz place code:
Code:
@Override public void gl_zoom_confirm(GL10 gl10) { super.gl_zoom_confirm(gl10); m_scroller.computeScrollOffset(); PDFPos pos = vGetPos(m_vw / 2, m_vh / 2); if( m_pages == null || m_doc == null || m_vw <= 0 || m_vh <= 0 || pos.pageno < 0 || pos.pageno >= m_cells.length) return; gl_abort_scroll(); int ccur = 0; while( ccur < m_cells.length ) { PDFCell cell = m_cells[ccur]; if( pos.pageno == cell.page_left || pos.pageno == cell.page_right ) { int left = cell.left; int w = cell.right - left; int x = left + ((w - m_vw) >> 1); int oldx = m_scroller.getCurrX(); int oldy = m_scroller.getCurrY(); if(oldx < left - m_page_gap / 2 || oldx + m_vw > cell.right + m_page_gap / 2) m_scroller.startScroll(oldx, oldy, x - oldx, 0); break; } ccur++; } }
to GLLayoutDual.java
this only for opengl mode.
Last edit: 6 years 5 months ago by radaee.
More
IP: 111.196.245.212 6 years 5 months ago #14599 by radaee
can you attach screen-hot to better explain this issue?
do you mean in different height of 2 page in screen, when zoom in very large size, the lower height page can't see on screen?
More
IP: 200.236.249.149 6 years 5 months ago #14600 by thiagopelikan
I added an attachment to help understand what I'm saying. I do not use opengl layout, I'm using pdfLayout.

This strange behavior only happens with different_page_size flag true, if I use the lib without this flag, the vertical move happens normally, that is, I zoom in from center of the page then I scroll the screen top or bottom to reach the start or the end of the page.

Using different_page_size this do not happen. After zoom, my vertical move is blocked, I still can scroll horizontally but not vertically.
More
IP: 111.196.245.212 6 years 5 months ago #14601 by radaee
OK, plz wait.
maybe 5 or 6 hours, for working time.
Time to create page: 0.417 seconds
Powered by Kunena Forum