[Phpmyadmin-devel] Dynamically increasing Create table dialog's size

Marc Delisle marc at infomarc.info
Sun Oct 9 21:20:52 CEST 2011


Piotr Przybylski a écrit :
> 2011/10/9 Marc Delisle <marc at 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

-- 
Marc Delisle
http://infomarc.info




More information about the Developers mailing list