Changeset 29522
- Timestamp:
- 08/17/2014 09:32:10 PM (12 years ago)
- File:
-
- 1 edited
-
trunk/src/wp-admin/js/editor-expand.js (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/js/editor-expand.js
r29495 r29522 32 32 lastScrollPosition = 0, 33 33 pageYOffsetAtTop = 130, 34 pinnedToolsTop = 56, // also used in CSS for the "#poststuff #post-body #postbox-container-1.pinned" selector 35 textEditorClonePaddingTop = 37, 36 autoresizeMinHeight = 300; // $window.height() - 310; 34 pinnedToolsTop = 56, 35 autoresizeMinHeight = 300; 37 36 38 37 $textEditorClone.insertAfter( $textEditor ); … … 42 41 'font-size': $textEditor.css( 'font-size' ), 43 42 'line-height': $textEditor.css( 'line-height' ), 44 'padding': $textEditor.css( 'padding' ),45 'padding-top': textEditorClonePaddingTop,46 43 'white-space': 'pre-wrap', 47 44 'word-wrap': 'break-word' … … 439 436 marginTop: $textTop.outerHeight() 440 437 } ); 441 $textEditorClone.width( $textEditor.width() ); 442 } 438 } 439 // ALways resize the clone so it doesn't "push" the parent width over 100% 440 $textEditorClone.width( contentWrapWidth - 20 - ( borderWidth * 2 ) ); 443 441 } 444 442 }
Note: See TracChangeset
for help on using the changeset viewer.