Signin/Signup with: 
Welcome, Guest
Username: Password: Remember me
Here you should submit your bug reports with logcat.

TOPIC:

Search results positioning bug on Android 8 years 2 months ago #10109

  • info@delitestudio.com
  • info@delitestudio.com's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 11
  • Thank you received: 0
It's your example :) I believe in this case Global.def_view = 3.

Thanks!

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

Search results positioning bug on Android 8 years 2 months ago #10170

  • info@delitestudio.com
  • info@delitestudio.com's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 11
  • Thank you received: 0
Hello, any update on that?

Thanks.

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

Search results positioning bug on Android 8 years 2 months ago #10218

  • info@delitestudio.com
  • info@delitestudio.com's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 11
  • Thank you received: 0
Hello, still no updates?

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

Search results positioning bug on Android 8 years 2 months ago #10220

  • Davide
  • Davide's Avatar
  • Offline
  • User is blocked
  • User is blocked
  • Posts: 814
  • Thank you received: 65
Hi,
maintain the old edit I suggested you and add the following line to vFind method of PDFView after vFindGoTo():
vCenterPage(m_finder.find_get_page());

Example:
public int vFind(int dir)
	{
		if( m_pages == null ) return -1;
		int ret = m_finder.find_prepare(dir);
		if( ret == 1 )
		{
			if( m_listener != null )
				m_listener.OnPDFFound( true );
			vFindGoto();
			vCenterPage(m_finder.find_get_page());
			return 0;//succeeded
		}
		if( ret == 0 )
		{
			if( m_listener != null )
				m_listener.OnPDFFound( false );
			return -1;//failed
		}
		m_thread.start_find( m_finder );//need thread operation.
		return 1;
	}

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

Last edit: by Davide.

Search results positioning bug on Android 8 years 2 months ago #10245

  • info@delitestudio.com
  • info@delitestudio.com's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 11
  • Thank you received: 0
Change made (keeping the earlier you sent us), but nothing changes :(

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

Last edit: by info@delitestudio.com.

Search results positioning bug on Android 8 years 2 months ago #10246

  • Davide
  • Davide's Avatar
  • Offline
  • User is blocked
  • User is blocked
  • Posts: 814
  • Thank you received: 65
Hi,
please add this method to PDFLayout class:
public void vCenterPage( int pageno )
	{
		if( m_pages == null || m_doc == null || m_w <= 0 || m_h <= 0 ) return;
		m_scroller.forceFinished(true);
		m_scroller.abortAnimation();
		int left = m_pages[pageno].m_x - m_page_gap/2;
		int top = m_pages[pageno].m_y - m_page_gap/2;
		int w = m_pages[pageno].m_w + m_page_gap;
		int h = m_pages[pageno].m_h + m_page_gap;
		int x = left + (w - m_w)/2;
		int y = top + (h - m_h)/2;
		int oldx = m_scroller.getCurrX();
		int oldy = m_scroller.getCurrY();
		m_scroller.startScroll(oldx, oldy, x - oldx, y - oldy);
	}

You have to make public or protected some variables of VPage class (m_x, m_y, m_w, m_h).

Then you have to call this method : vCenterPage(m_finder.find_get_page()); at line 136 and 1033 of PDFView class.

This will solve your issue.

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

Powered by Kunena Forum