Changeset 38160
- Timestamp:
- 07/27/2016 02:58:27 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/js/tinymce/plugins/wordpress/plugin.js
r38110 r38160 769 769 toolbar = this.getEl(), 770 770 toolbarWidth = toolbar.offsetWidth, 771 toolbarHeight = toolbar. offsetHeight,771 toolbarHeight = toolbar.clientHeight, 772 772 selection = currentSelection.getBoundingClientRect(), 773 773 selectionMiddle = ( selection.left + selection.right ) / 2, 774 774 buffer = 5, 775 margin = 8, 776 spaceNeeded = toolbarHeight + margin + buffer, 775 spaceNeeded = toolbarHeight + buffer, 777 776 wpAdminbarBottom = wpAdminbar ? wpAdminbar.getBoundingClientRect().bottom : 0, 778 777 mceToolbarBottom = mceToolbar ? mceToolbar.getBoundingClientRect().bottom : 0, … … 808 807 } else if ( spaceTop >= spaceNeeded ) { 809 808 className = ' mce-arrow-down'; 810 top = selection.top + iframeRect.top + scrollY - toolbarHeight - margin+ iosOffsetTop;809 top = selection.top + iframeRect.top + scrollY - toolbarHeight + iosOffsetTop; 811 810 } 812 811 } else { 813 812 if ( spaceTop >= spaceNeeded ) { 814 813 className = ' mce-arrow-down'; 815 top = selection.top + iframeRect.top + scrollY - toolbarHeight - margin+ iosOffsetTop;814 top = selection.top + iframeRect.top + scrollY - toolbarHeight + iosOffsetTop; 816 815 } else if ( spaceBottom >= spaceNeeded && editorHeight / 2 > selection.bottom + iframeRect.top - blockedTop ) { 817 816 className = ' mce-arrow-up';
Note: See TracChangeset
for help on using the changeset viewer.