- Posts: 36
- 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 Android development and PDF
Vertical Scroll after zoom using diferentes page size flag
- thiagopelikan
- Topic Author
- Offline
- Junior Member
-
Less
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
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
- thiagopelikan
- Topic Author
- Offline
- Junior Member
-
Less
More
- Posts: 36
- Thank you received: 0
IP: 200.236.249.149
6 years 5 months ago - 6 years 5 months ago #14597
by thiagopelikan
Replied by thiagopelikan on topic Vertical Scroll after zoom using diferentes page size flag
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.
IP: 111.196.245.212
6 years 5 months ago - 6 years 5 months ago #14598
by radaee
Replied by radaee on topic Vertical Scroll after zoom using diferentes page size flag
if you mean after zoom, page edge not align on screen for dual page.
plz place code:
to GLLayoutDual.java
this only for opengl mode.
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++;
}
}
this only for opengl mode.
Last edit: 6 years 5 months ago by radaee.
IP: 111.196.245.212
6 years 5 months ago #14599
by radaee
Replied by radaee on topic Vertical Scroll after zoom using diferentes page size flag
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?
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?
- thiagopelikan
- Topic Author
- Offline
- Junior Member
-
Less
More
- Posts: 36
- Thank you received: 0
IP: 200.236.249.149
6 years 5 months ago #14600
by thiagopelikan
Replied by thiagopelikan on topic Vertical Scroll after zoom using diferentes page size flag
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.
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.
IP: 111.196.245.212
6 years 5 months ago #14601
by radaee
Replied by radaee on topic Vertical Scroll after zoom using diferentes page size flag
OK, plz wait.
maybe 5 or 6 hours, for working time.
maybe 5 or 6 hours, for working time.
Time to create page: 0.417 seconds