Changeset 1469


Ignore:
Timestamp:
Jul 15, 2006, 1:58:51 AM (18 years ago)
Author:
chrisaga
Message:

merge from trunk r1467:1468 into branch 1.6 (bug 437 popup-window size )

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/branch-1_6/include/scripts.js

    r1114 r1469  
    4141}
    4242
     43function verifieAndOpen()
     44{
     45  var ok=1;
     46  if (!img.complete)
     47  {
     48    // sometime the image loading is not complete
     49    // especially with KHTML and Opera
     50    setTimeout("verifieAndOpen()",200)
     51  }
     52  else
     53  {
     54  /* give more space for scrollbars (10 for FF, 40 for IE) */
     55    width=img.width +40;
     56    height=img.height +40;
     57    window.open(owURL,owName,owFeatures  + ',width=' + width + ',height=' + height);
     58  }
     59}
     60
    4361function phpWGOpenWindow(theURL,winName,features)
    4462{
    45   window.open(theURL,winName,features);
     63  img = new Image()
     64  img.src = theURL;
     65  owURL=theURL;
     66  owName=winName;
     67  owFeatures=features;
     68  verifieAndOpen();
    4669}
    4770
Note: See TracChangeset for help on using the changeset viewer.