WordPress.org

Make WordPress Core

Changeset 31437


Ignore:
Timestamp:
02/12/2015 06:01:51 AM (6 years ago)
Author:
dd32
Message:

TinyMCE: ensure the image toolbar stays visible when the image is much wider than the editor.

Props iseulde.
Merges [31362] to the 4.1 branch.
Fixes #30696.

Location:
branches/4.1
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/4.1

  • branches/4.1/src/wp-includes/js/tinymce/plugins/wpeditimage/plugin.js

    r31436 r31437  
    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.