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

TOPIC:

Screen rotation seems to be glitched 6 years 8 months ago #12689

  • JQRL
  • JQRL's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 9
  • Thank you received: 0
Hi, I've been using the screen rotation feature for the cordova plugin.
It seems that when i select and anotation and rotatw my screen, the view becomes glitched. I'm not sure if this is the case for everyone or just me.
Is thee a way to fix this?

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

Screen rotation seems to be glitched 6 years 8 months ago #12691

  • support
  • support's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 692
  • Thank you received: 59
May you say on which platform are you working on? Android or iOS?
If Android, which kind of device, screen resolution/size, os version?

We'd do some internal tests on it.
The following user(s) said Thank You: JQRL

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

Screen rotation seems to be glitched 6 years 8 months ago #12693

  • JQRL
  • JQRL's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 9
  • Thank you received: 0

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

Screen rotation seems to be glitched 6 years 8 months ago #12697

  • nermeen
  • nermeen's Avatar
  • Offline
  • Platinum Member
  • Platinum Member
  • Posts: 962
  • Thank you received: 87
Rotating while an annotation is selected will invalidate the saved annotation's position information.
The solution is to cancel the annotation selection, this can be done by adding the following method to PDFViewController:
public void onConfigChanged() {
	if(m_bar_status == BAR_ACT) {
		m_view.PDFCancelAnnot();
		m_bar_act.BarHide();
		m_bar_status = BAR_NONE;
	}
}
And call it from PDFViewAct:
public void onConfigurationChanged(Configuration newConfig)
{
	m_controller.onConfigChanged();
        super.onConfigurationChanged(newConfig);
}

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

  • Page:
  • 1
Powered by Kunena Forum