~canonical-sysadmins/wordpress/3.9.x

« back to all changes in this revision

Viewing changes to wp-includes/js/tinymce/themes/advanced/js/source_editor.js

  • Committer: Andrew Glen-Young
  • Date: 2011-03-08 14:47:51 UTC
  • Revision ID: andrew.glen-young@canonical.com-20110308144751-1n6spqgayztf9h77
[AGY] import 3.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
44
44
                setWrap('off');
45
45
}
46
46
 
47
 
var wHeight=0, wWidth=0, owHeight=0, owWidth=0;
48
 
 
49
47
function resizeInputs() {
50
 
        var el = document.getElementById('htmlSource');
51
 
 
52
 
        if (!tinymce.isIE) {
53
 
                 wHeight = self.innerHeight - 65;
54
 
                 wWidth = self.innerWidth - 16;
55
 
        } else {
56
 
                 wHeight = document.body.clientHeight - 70;
57
 
                 wWidth = document.body.clientWidth - 16;
 
48
        var vp = tinyMCEPopup.dom.getViewPort(window), el;
 
49
 
 
50
        el = document.getElementById('htmlSource');
 
51
 
 
52
        if (el) {
 
53
                el.style.width  = (vp.w - 20) + 'px';
 
54
                el.style.height = (vp.h - 65) + 'px';
58
55
        }
59
 
 
60
 
        el.style.height = Math.abs(wHeight) + 'px';
61
 
        el.style.width  = Math.abs(wWidth) + 'px';
62
56
}