Ticket #27307: 27307.diff
| File 27307.diff, 864 bytes (added by , 8 years ago) |
|---|
-
src/wp-admin/js/widgets.js
51 51 widgetWidth = widget.parent().width(); 52 52 53 53 if ( inside.is(':hidden') ) { 54 if ( targetWidth > 250 && ( targetWidth + 30 > widgetWidth ) && widget.closest('div.widgets-sortables').length ) {55 if ( widget.closest('div.widget-liquid-right').length ) {56 margin = isRTL ? 'margin-right' : 'margin-left';57 } else {58 margin = isRTL ? 'margin-left' : 'margin-right';59 }60 61 css[ margin ] = widgetWidth - ( targetWidth + 30 ) + 'px';62 widget.css( css );63 }64 54 /* 65 55 * Don't change the order of attributes changes and animation: 66 56 * it's important for screen readers, see ticket #31476.