Making WordPress.org

Changeset 300


Ignore:
Timestamp:
01/20/2014 07:10:48 PM (11 years ago)
Author:
nacin
Message:

Trac: Prevent re-rendering of image previews and other changes from causing "jumps" while writing a comment.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/style/trac/wp-trac.js

    r298 r300  
    108108                        }
    109109                        hadClass = modify.hasClass('collapsed');
     110                        // Prevent re-rendering of image previews and other changes from causing "jumps" while writing a comment.
     111                        $(document.head).append( '<style id="changelog-height"> #changelog { height: ' + $('#changelog').height() + 'px !important; } </style>' );
    110112                    });
    111113                    $(document).ajaxComplete( function( event, XMLHttpRequest, ajaxOptions ) {
     
    117119                        }
    118120                        content.triggerHandler( 'wpTracPostPreview' );
     121                        window.setTimeout( function() { $('#changelog-height').remove(); }, 200 );
    119122                    });
    120123                })();
Note: See TracChangeset for help on using the changeset viewer.