Make WordPress Core

Changeset 6996


Ignore:
Timestamp:
02/24/2008 02:04:11 AM (18 years ago)
Author:
ryan
Message:

Specify min width on pages that use TinyMCE. Props azaozz. fixes #5975

Location:
trunk/wp-admin
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/admin-header.php

    r6950 r6996  
    55    if ( user_can_richedit() )
    66        wp_enqueue_script( 'wp_tiny_mce' );
     7}
     8
     9$min_width_pages = array( 'post.php', 'post-new.php', 'page.php', 'page-new.php', 'widgets.php', 'comment.php' );
     10$the_current_page = preg_replace('|^.*/wp-admin/|i', '', $_SERVER['PHP_SELF']);
     11$ie6_no_scrollbar = true;
     12
     13function add_minwidth($c) {
     14    return $c . 'minwidth ';
     15}
     16
     17if ( in_array( $the_current_page, $min_width_pages ) ) {
     18        $ie6_no_scrollbar = false;
     19        add_filter( 'admin_body_class', 'add_minwidth' );
    720}
    821
     
    2740addLoadEvent=(function(){var e=[],t,s,n,i,o,d=document,w=window,r='readyState',c='onreadystatechange',x=function(){n=1;clearInterval(t);while(i=e.shift())i();if(s)s[c]=''};return function(f){if(n)return f();if(!e[0]){d.addEventListener&&d.addEventListener("DOMContentLoaded",x,false);/*@cc_on@*//*@if(@_win32)d.write("<script id=__ie_onload defer src=//0><\/scr"+"ipt>");s=d.getElementById("__ie_onload");s[c]=function(){s[r]=="complete"&&x()};/*@end@*/if(/WebKit/i.test(navigator.userAgent))t=setInterval(function(){/loaded|complete/.test(d[r])&&x()},10);o=w.onload;w.onload=function(){x();o&&o()}}e.push(f)}})();//]]>
    2841</script>
    29 <?php if ( ($parent_file != 'link-manager.php') && ($parent_file != 'options-general.php') ) : ?>
     42<?php if ( ($parent_file != 'link-manager.php') && ($parent_file != 'options-general.php') && $ie6_no_scrollbar ) : ?>
    3043<style type="text/css">* html { overflow-x: hidden; }</style>
    3144<?php endif;
  • trunk/wp-admin/css/ie.css

    r6880 r6996  
    99    border:none;
    1010}
     11
     12* html body.minwidth {
     13    _width: expression(document.documentElement.clientWidth < 942 ? "940px" : "auto");
     14}
     15
     16* html #poststuff #titlediv {
     17    display: inline-block;
     18}
     19
     20* html div.widget-liquid-left-holder, * html div.widget-liquid-right {
     21    display: block;
     22    position: relative;
     23}
  • trunk/wp-admin/wp-admin.css

    r6978 r6996  
    13291329    vertical-align:text-top;
    13301330}
     1331
     1332body.minwidth {
     1333    min-width: 940px;
     1334}
Note: See TracChangeset for help on using the changeset viewer.