Ignore:
Timestamp:
01/07/07 03:02:43 (13 years ago)
Author:
ray
Message:

EFM update:

  • make the files display area scale with the window
  • prevent insertion an empty img when no image is selected, remove the selected img when url field is cleared
  • prevent insertion of border styles in IE when no border is selected
  • heading of popup changed from "File Manager" to "Insert Image" and "Insert File Link" respectively

htmlarea.js: new function HTMLArea.viewportSize()

full-screen.js: use above function to detect viewport size

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/plugins/FullScreen/full-screen.js

    r376 r631  
    5757    e._sizing = true; 
    5858    // Width & Height of window 
    59     var x,y; 
    60     if (window.innerHeight) // all except Explorer 
    61     { 
    62       x = window.innerWidth; 
    63       y = window.innerHeight; 
    64     } 
    65     else if (document.documentElement && document.documentElement.clientHeight) 
    66       // Explorer 6 Strict Mode 
    67     { 
    68       x = document.documentElement.clientWidth; 
    69       y = document.documentElement.clientHeight; 
    70     } 
    71     else if (document.body) // other Explorers 
    72     { 
    73       x = document.body.clientWidth; 
    74       y = document.body.clientHeight; 
    75     } 
     59    var dim = HTMLArea.viewportSize(); 
    7660 
    77     e.sizeEditor(x + 'px',y + 'px',true,true); 
     61    e.sizeEditor(dim.x + 'px',dim.y + 'px',true,true); 
    7862    e._sizing = false; 
    7963  } 
Note: See TracChangeset for help on using the changeset viewer.