use window height for viewport height instead of document height#389
use window height for viewport height instead of document height#389DocX wants to merge 1 commit intoPrinzhorn:masterfrom
Conversation
translation from relative to absolute coordinates should be (as it is in documentation and also it is somehow logical) relative to browser's viewport edges. Thus viewport height is not document height but browser's window inner height.
|
There are other bits of code that use |
|
I was trying with it in simple html without CSS styles. So I had not height:100% on html. So if it is mandatory for the right function, it could be ok. IMHO I would still prefer window.innerHeight since it is more verbose about what it should be :) |
|
I agree. Now we need to make it work in IE http://stackoverflow.com/questions/10173236/window-innerheight-ie8-alternative E.g. |
translation from relative to absolute coordinates should be (as it is in documentation and also it is somehow logical) relative to browser's viewport edges. Thus viewport height is not document height but browser's window inner height.