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.
A:
I don't know exactly what you mean by a 'jquery dialog box', but the standard way to disable the scroll bars would be to set the div's overflow property to 'hidden'
put this in your css file:
div.class_name {
overflow: hidden;
}
W_P
2009-10-25 02:18:35
jquery(a javascript wrapper of sorts) has there own dialog boxes. there are options in jquery to do similar things but did not find one for this particular plugin. i cannot just set that property for jquery
ngreenwood6
2009-10-25 02:26:36
jquery is not a javascript wrapper, it's a framework that abstracts out cross-browser issues and simplifies DOM traversal...if you can specify what jquery function you are using to generate the 'dialog box' then i might be able to help...
W_P
2009-10-26 00:42:49
+1
A:
Do you mean the jQuery UI dialog widget?
You can pass an option when you create it to specify its height, e.g.
$('.selector').dialog({ height: 350 });
Make it taller than the content you’re putting into it, and I suspect you’d be golden.
Paul D. Waite
2009-12-21 23:02:54