Make WordPress Core

Changeset 5493


Ignore:
Timestamp:
05/19/2007 05:23:50 PM (18 years ago)
Author:
ryan
Message:

Fix widget admin layout for IE7. Props Denis-de-Bernardy. fixes #4264 for 2.2

Location:
branches/2.2/wp-admin
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2/wp-admin/widgets.css

    r5324 r5493  
    8585
    8686.placematt {
    87     position: absolute;
    8887    cursor: default;
    8988    margin: 10px 0 0;
    9089    padding: 0;
    9190    width: 238px;
     91    float:left;
    9292    background-color: #ffe;
    9393}
     
    107107}
    108108
     109
    109110#palettediv {
    110111    border: 1px solid #bbb;
    111112    background-color: #f0f8ff;
    112     height: 180px;
     113    height:auto;
    113114    margin-top: 10px;
    114115}
  • branches/2.2/wp-admin/widgets.php

    r5436 r5493  
    1616?>
    1717    <link rel="stylesheet" href="widgets.css?version=<?php bloginfo('version'); ?>" type="text/css" />
     18    <!--[if IE 7]>
     19    <style type="text/css">
     20    #palette {float:left;}
     21    </style>
     22    <![endif]-->
    1823    <style type="text/css">
    1924        .dropzone ul { height: <?php echo constant( 'WP_WIDGETS_HEIGHT' ); ?>px; }
     
    6267        widgets.map(function(o) {o='widgetprefix-'+o; Position.absolutize(o); Position.relativize(o);} );
    6368        $A(Draggables.drags).map(function(o) {o.startDrag(null); o.finishDrag(null);});
    64         for ( var n in Draggables.drags ) {
     69        //for ( var n in Draggables.drags ) {
     70        for ( n=0; n<=Draggables.drags.length; n++ ) {
    6571            if ( Draggables.drags[n].element.id == 'lastmodule' ) {
    6672                Draggables.drags[n].destroy();
     
    146152            if ( $(o).childNodes.length == 0 ) {
    147153                pm.style.display = 'block';
    148                 Position.absolutize(o+'placematt');
     154                //Position.absolutize(o+'placematt');
    149155            } else {
    150156                pm.style.display = 'none';
     
    303309                    <h3><?php echo $sidebar['name']; ?></h3>
    304310                   
    305                     <div id="<?php echo $index; ?>placematt" class="module placematt">
     311                    <div id="<?php echo $index; ?>placematt" class="module placemat">
    306312                        <span class="handle">
    307313                            <h4><?php _e( 'Default Sidebar' ); ?></h4>
Note: See TracChangeset for help on using the changeset viewer.