2011/10/9 Marc Delisle marc@infomarc.info:
Piotr Przybylski a écrit :
2011/10/9 Marc Delisle marc@infomarc.info:
Hi, please comment on my commit 554c1df307b47516dc0249fc75bdec2ad5c5e5a1.
I think size should be computed when AJAX response comes, and with some reasonable min sizes. Also, I don't like the idea of referencing frames (top.frame_content) when it can be easily avoided. Something like that should do:
- height: $(window.document.body).innerHeight()-16,
- width: $(window.document.body).innerWidth()-16,
Thanks Piotr; however, using .innerHeight() returns too small a value.
$(window.document.body).innerHeight() returns 443
$(top.frame_content).height() returns 791
Oops, I forgot that <body>'s height gets special treatment. You are right, height() is the correct function to use.