Make WordPress Core

Changeset 30906


Ignore:
Timestamp:
12/16/2014 03:10:19 PM (12 years ago)
Author:
johnbillion
Message:

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

Merges [30829] to the 4.1 branch.

Fixes #30670.

Location:
branches/4.1
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/4.1

  • branches/4.1/src/wp-includes/css/editor.css

    r30892 r30906  
    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
  • branches/4.1/src/wp-includes/js/tinymce/plugins/wpeditimage/plugin.js

    r30862 r30906  
    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.