- bug #1746921 Left frame shrinks on db change, thanks to Juergen Wind

This commit is contained in:
Marc Delisle
2007-07-22 16:31:41 +00:00
parent 17c81f3f97
commit f9ce914891
2 changed files with 7 additions and 4 deletions

View File

@@ -55,11 +55,13 @@ function PMA_callFunctionDelayed(myfunction, delay)
*/
function PMA_saveFrameSizeReal()
{
pma_navi_width = document.getElementById('body_leftFrame').offsetWidth
//alert('from DOM: ' + typeof(pma_navi_width) + ' : ' + pma_navi_width);
if (pma_navi_width > 0) {
if (parent.text_dir == 'ltr') {
pma_navi_width = parseInt(parent.document.getElementById('mainFrameset').cols)
} else {
pma_navi_width = parent.document.getElementById('mainFrameset').cols.match(/\d+$/)
}
if ((pma_navi_width > 0) && (pma_navi_width != PMA_getCookie('pma_navi_width'))) {
PMA_setCookie('pma_navi_width', pma_navi_width, expires);
//alert('framesize saved');
}
}