Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can you disable scroll bars in the jQuery UI dialog box?

Does anyone know if there is a way to disable scroll bars in the jquery dialog box? The content that I have in the div is 300 px but the dialog is set to 200px. It automatically puts the scrollbars but I do not want them. I will add it myself to the second div that makes it bigger than the window. Any help is appreciated.

like image 308
ngreenwood6 Avatar asked Oct 25 '09 02:10

ngreenwood6


People also ask

What is jQuery scrollbar?

The jQuery scrollbar is one of the jQuery library plugins that can be used for to create custom scrollbars with the help of some html elements like div. Additionally, the div tag used as the scroll role for drag and drop events and its easily customizes for while changing the div tag styles.

What is scroll bar in GUI?

A scrollbar is an interaction technique or widget in which continuous text, pictures, or any other content can be scrolled in a predetermined direction (up, down, left, or right) on a computer display, window, or viewport so that all of the content can be viewed, even if only a fraction of the content can be seen on a ...


1 Answers

I solved the problem like this:

.dialog({   title: $(this).attr("data-dialog-title"),   closeOnEscape: true,   close: function () { $(this).remove() },   draggable: true,   position: 'center',   width: 500,   height: 'auto',   modal: true,   open: function (event, ui) {     $('#myDialogId').css('overflow', 'hidden'); //this line does the actual hiding   } }); 
like image 193
MUG4N Avatar answered Sep 27 '22 21:09

MUG4N