New create table dialog: fix resize event

This commit is contained in:
Piotr Przybylski 2011-10-11 02:08:09 +02:00
parent 021e0225cc
commit 9d0c410b36

View File

@ -1521,11 +1521,12 @@ function PMA_createTableDialog( div, url , target)
position: ['left','top'],
width: window.innerWidth-10,
height: window.innerHeight-10,
open: function(event) {
open: function() {
var $dialog = $(this);
$(window).bind('resize.dialog-resizer', function() {
clearTimeout(timeout);
timeout = setTimeout(function() {
$(this).dialog('option', {
$dialog.dialog('option', {
width: window.innerWidth-10,
height: window.innerHeight-10
});