WordPress.org

Make WordPress Core

Changeset 31362


Ignore:
Timestamp:
02/06/2015 10:59:35 PM (6 years ago)
Author:
azaozz
Message:

TinyMCE: ensure the image toolbar stays visible when the image is much wider than the editor. Props iseulde, fixes #20696 for trunk.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/js/tinymce/plugins/wpeditimage/plugin.js

    r31235 r31362  
    239239        left += iframePos.x;
    240240
    241         if ( toolbarWidth >= windowWidth ) {
     241        if ( boundary.left < 0 || boundary.right > iframeWidth ) {
     242            left = iframePos.x + ( iframeWidth - toolbarWidth ) / 2;
     243        } else if ( toolbarWidth >= windowWidth ) {
    242244            className += ' mce-arrow-full';
    243245            left = 0;
Note: See TracChangeset for help on using the changeset viewer.