Vertical Scroll after zoom using diferentes page size flag - RadaeePDF.com
Signin/Signup with: 
Welcome, Guest
Username: Password: Remember me
Questions about Android development and PDF
  • Page:
  • 1
  • 2

TOPIC: Vertical Scroll after zoom using diferentes page size flag

Vertical Scroll after zoom using diferentes page size flag 2 weeks 2 days ago #14595

  • thiagopelikan
  • thiagopelikan's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 18
  • Thank you received: 0
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

Please Log in or Create an account to join the conversation.

Vertical Scroll after zoom using diferentes page size flag 2 weeks 2 days ago #14597

  • thiagopelikan
  • thiagopelikan's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 18
  • Thank you received: 0
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.

Please Log in or Create an account to join the conversation.

Last edit: by thiagopelikan.

Vertical Scroll after zoom using diferentes page size flag 2 weeks 2 days ago #14598

  • radaee
  • radaee's Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 903
  • Karma: 43
  • Thank you received: 17
if you mean after zoom, page edge not align on screen for dual page.
plz place 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.

Please Log in or Create an account to join the conversation.

Last edit: by radaee.

Vertical Scroll after zoom using diferentes page size flag 2 weeks 2 days ago #14599

  • radaee
  • radaee's Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 903
  • Karma: 43
  • Thank you received: 17
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?

Please Log in or Create an account to join the conversation.

Vertical Scroll after zoom using diferentes page size flag 2 weeks 2 days ago #14600

  • thiagopelikan
  • thiagopelikan's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 18
  • Thank you received: 0
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.
Attachments:

Please Log in or Create an account to join the conversation.

Vertical Scroll after zoom using diferentes page size flag 2 weeks 2 days ago #14601

  • radaee
  • radaee's Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 903
  • Karma: 43
  • Thank you received: 17
OK, plz wait.
maybe 5 or 6 hours, for working time.

Please Log in or Create an account to join the conversation.

  • Page:
  • 1
  • 2
Powered by Kunena Forum