Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ScrollTop bootbox modal on fadeIn

I use bootbox.js to make modal but when the modal fadeIn and the content is too long, the scrollbar goes at the level of the bottom button. I need the scrollbar stay on top when modal appear

enter image description here

like image 817
Thomas Mairé Avatar asked Dec 24 '14 11:12

Thomas Mairé


1 Answers

I've solved adding .off("shown.bs.modal"); after the bootbox.dialog.

bootbox.dialog({ ... }).off("shown.bs.modal");
like image 79
Thomas Mairé Avatar answered Oct 11 '22 23:10

Thomas Mairé