Page 1 of 1

innerDocWindowRect includes bar at the bottom

Posted: Mon Oct 14, 2024 11:21 am
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 ...
innerDocWindowRect-example.png
... the complete area marked in yellow is returned, which is a bit too much at the bottom.

Best regards,
Andreas

Re: innerDocWindowRect includes bar at the bottom

Posted: Mon Oct 14, 2024 11:34 am
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

Re: innerDocWindowRect includes bar at the bottom

Posted: Mon Oct 14, 2024 11:49 am
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

Re: innerDocWindowRect includes bar at the bottom

Posted: Mon Oct 14, 2024 12:11 pm
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