- bug #1746921 Left frame shrinks on db change, thanks to Juergen Wind
This commit is contained in:
@@ -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');
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user