innerDocWindowRect includes bar at the bottom

PDF-XChange Editor SDK for Developers

Moderators: Daniel - PDF-XChange, PDF-XChange Support, Vasyl - PDF-XChange, Chris - PDF-XChange, Sean - PDF-XChange, Paul - PDF-XChange, Ivan - Tracker Software, Stefan - PDF-XChange

Forum rules
DO NOT post your license/serial key, or your activation code - these forums, and all posts within, are public and we will be forced to immediately deactivate your license.

When experiencing some errors, use the IAUX_Inst::FormatHRESULT method to see their description and include it in your post along with the error code.
Post Reply
AnKeilha
User
Posts: 70
Joined: Fri Apr 27, 2018 11:17 am

innerDocWindowRect includes bar at the bottom

Post by AnKeilha »

Hello,
we are using PDF-XChange Editor Plus SDK Version 10.1.1 (build 381). For one of our features we need the innerDocWindowRect, which we fetch via Javascript.

This works quite well, but apparently the rectangle returned does not take into account the navigation-bar at the bottom. This means, for the example ...
Example
Example
... the complete area marked in yellow is returned, which is a bit too much at the bottom.

Best regards,
Andreas
User avatar
Stefan - PDF-XChange
Site Admin
Posts: 19794
Joined: Mon Jan 12, 2009 8:07 am
Contact:

Re: innerDocWindowRect includes bar at the bottom

Post by Stefan - PDF-XChange »

Hello Andreas,

Can you please try with build 390 (the current latest) - does it return a different value?
(You can download a portable copy of the end user Editor to try running the JS in).

I presume it would still return the same - as technically the bottom title bar can be collapsed and that would leave more rendering space - and that bar is inside the indderDoc window:
This rectangle does not include items such as the title bar and resizing border, which are part of the outer
rectangle of the document window.


I will check with our devs if they think this can be imroved.

Kind regards,
Stefan
AnKeilha
User
Posts: 70
Joined: Fri Apr 27, 2018 11:17 am

Re: innerDocWindowRect includes bar at the bottom

Post by AnKeilha »

Hello Stefan,
I just tried "Version 10.4.2, build 390, Portable" using the Javascript Console. The behaviour regarding the bottom bar seems to be the same.

Best regards,
Andreas
User avatar
Stefan - PDF-XChange
Site Admin
Posts: 19794
Joined: Mon Jan 12, 2009 8:07 am
Contact:

Re: innerDocWindowRect includes bar at the bottom

Post by Stefan - PDF-XChange »

Hello AnKeilha,

Thanks for confirming!
I've asked one of our devs working on JS support to take a look at this and advise.

Kind regards,
Stefan
Post Reply