Commit be792634 authored by KR Moorhouse's avatar KR Moorhouse Committed by Eric Windham

Shifted merge tag box down if it goes above the top of the page.

parent 91f74c8a
......@@ -197,8 +197,12 @@ define( [
// change it to render above the field
if ( ( tagBoxY + tagBoxHeight ) > windowHeight ) {
tagBoxY = posY - tagBoxHeight;
}
tagBoxY = posY - tagBoxHeight;
}
if ( 0 > tagBoxY ) {
tagBoxY = posY;
}
jQuery( '#merge-tags-box' ).css( 'top', tagBoxY );
......@@ -437,6 +441,10 @@ define( [
tagBoxY = posY - tagBoxHeight;
}
if ( 0 > tagBoxY ) {
tagBoxY = posY;
}
jQuery( '#merge-tags-box' ).css( 'top', tagBoxY );
var repeaterRow = $this.closest( '.nf-list-options-tbody' );
......
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment