Make WordPress Core

Changeset 29524


Ignore:
Timestamp:
08/18/2014 01:12:31 AM (12 years ago)
Author:
azaozz
Message:

Editor scrolling: set max-width: 100% for the text editor clone instead of always resizing it. See #29246.

Location:
trunk/src/wp-admin
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/css/edit.css

    r29495 r29524  
    386386    visibility: hidden;
    387387    overflow: hidden;
     388    max-width: 100%;
    388389}
    389390
  • trunk/src/wp-admin/js/editor-expand.js

    r29523 r29524  
    9292            hiddenHeight;
    9393
    94         $textEditorClone.width( $textEditor.width() );
     94        $textEditorClone.width( $textEditor.width() - 22 );
    9595        $textEditorClone.text( $textEditor.val() + ' ' );
    9696
     
    462462                    marginTop: $textTop.outerHeight()
    463463                } );
    464             }
    465             // ALways resize the clone so it doesn't "push" the parent width over 100%
    466             $textEditorClone.width( contentWrapWidth - 20 - ( borderWidth * 2 ) );
     464
     465                $textEditorClone.width( contentWrapWidth - 20 - ( borderWidth * 2 ) );
     466            }
    467467        }
    468468    }
  • trunk/src/wp-admin/js/postbox.js

    r29523 r29524  
    5050                    $postbox.show();
    5151                    if ( $.isFunction( postboxes.pbshow ) )
    52                         self.pbshow( box );
     52                        self.pbshow( boxId );
    5353                } else {
    5454                    $postbox.hide();
    5555                    if ( $.isFunction( postboxes.pbhide ) )
    56                         self.pbhide( box );
     56                        self.pbhide( boxId );
    5757                }
    5858                self.save_state(page);
Note: See TracChangeset for help on using the changeset viewer.