Skip to content

Commit

Permalink
Merge pull request #3902 from impress-org/issue/3876
Browse files Browse the repository at this point in the history
fix: ensure the give shortcode should display proper title with scroll bar #3876
  • Loading branch information
Devin Walker committed Dec 12, 2018
2 parents 613da52 + 441ec27 commit 986f001
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions includes/admin/shortcodes/admin-shortcodes.js
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,15 @@ jQuery( function( $ ) {
scForm.destroy();
},
onopen: function() {

// Hacky way to remove scrollbars when not necessary.
let popup = $('.mce-sc-popup');
popup.css({
width: popup.width(),
height: popup.height(),
overflow: 'auto'
});

// Conditional fields.
render_continue_button_title_field();
}
Expand Down

0 comments on commit 986f001

Please sign in to comment.