diff --git a/ChangeLog b/ChangeLog index a21d0fd5f..268298d66 100644 --- a/ChangeLog +++ b/ChangeLog @@ -6,6 +6,8 @@ $Id$ $HeadURL: https://phpmyadmin.svn.sourceforge.net/svnroot/phpmyadmin/trunk/phpMyAdmin/ChangeLog $ 3.3.7.0 (not yet released) +- patch #3050492 [PDF scratchboard] Cannot drag table box to the edge after + a page size increase, thanks to Martin Schönberger - mad05 3.3.6.0 (not yet released) - bug #3033063 [core] Navi gets wrong db name diff --git a/js/functions.js b/js/functions.js index 93cee6047..697c344be 100644 --- a/js/functions.js +++ b/js/functions.js @@ -1385,6 +1385,7 @@ function refreshDragOption(e) { myid = getElement(e); if (myid.style.visibility == 'visible') { refreshLayout(); + TableDragInit(); } } diff --git a/pdf_pages.php b/pdf_pages.php index aff73850c..7b0d6a859 100644 --- a/pdf_pages.php +++ b/pdf_pages.php @@ -349,7 +349,7 @@ foreach ($array_sh_page AS $key => $temp_sh_page) { $drag_x = $temp_sh_page['x']; $drag_y = $temp_sh_page['y']; - $draginit .= ' Drag.init(getElement("table_' . $i . '"), null, 0, parseInt(myid.style.width)-2, 0, parseInt(myid.style.height)-5);' . "\n"; + $draginit2 = ' Drag.init(getElement("table_' . $i . '"), null, 0, parseInt(myid.style.width)-2, 0, parseInt(myid.style.height)-5);' . "\n"; $draginit .= ' getElement("table_' . $i . '").onDrag = function (x, y) { document.edcoord.elements["c_table_' . $i . '[x]"].value = parseInt(x); document.edcoord.elements["c_table_' . $i . '[y]"].value = parseInt(y) }' . "\n"; $draginit .= ' getElement("table_' . $i . '").style.left = "' . $drag_x . 'px";' . "\n"; $draginit .= ' getElement("table_' . $i . '").style.top = "' . $drag_y . 'px";' . "\n"; @@ -385,6 +385,12 @@ function init() { refreshLayout(); myid = getElement('pdflayout'); + TableDragInit(); +} + +function TableDragInit() { + myid = getElement('pdflayout'); + } function resetDrag() {