Make WordPress Core

Changeset 30829 for trunk


Ignore:
Timestamp:
12/12/2014 12:09:29 AM (10 years ago)
Author:
azaozz
Message:

TinyMCE: remove reposition delay on showing the image toolbar. Not needed when no animation. Fixes #30670.

Location:
trunk/src/wp-includes
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/css/editor.css

    r30812 r30829  
    166166    margin-bottom: 8px;
    167167    position: absolute;
     168    visibility: hidden;
    168169    -moz-user-select: none;
    169170    -webkit-user-select: none;
     
    255256    width: 100%;
    256257    overflow-x: auto;
     258}
     259
     260div.mce-inline-toolbar-grp-active {
     261    visibility: visible;
    257262}
    258263
  • trunk/src/wp-includes/js/tinymce/plugins/wpeditimage/plugin.js

    r30775 r30829  
    310310
    311311    floatingToolbar.on( 'show', function() {
    312         var self = this;
    313 
    314312        toolbarIsHidden = false;
    315313
    316         setTimeout( function() {
    317             if ( self._visible ) {
    318                 DOM.addClass( self.getEl(), 'mce-inline-toolbar-grp-active' );
    319                 self.reposition();
    320             }
    321         }, 100 );
     314        if ( this._visible ) {
     315            this.reposition();
     316            DOM.addClass( this.getEl(), 'mce-inline-toolbar-grp-active' );
     317        }
    322318    } );
    323319
Note: See TracChangeset for help on using the changeset viewer.