Dear,
I'm new to jQuery UI and i want to use the dialog box. But i ran into a problem.
I want to change the standard width value to be "auto", but for some reason this doesn't work.
(I change it in the following function)
- $.widget( "ui.dialog", {
- version: "1.10.0",
- options: {
- appendTo: "body",
- autoOpen: true,
- buttons: [],
- closeOnEscape: true,
- closeText: "close",
- dialogClass: "",
- draggable: true,
- hide: null,
- height: "auto",
- maxHeight: null,
- maxWidth: null,
- minHeight: 150,
- minWidth: 150,
- modal: false,
- position: {
- my: "center",
- at: "center",
- of: window,
- collision: "fit",
- // Ensure the titlebar is always visible
- using: function( pos ) {
- var topOffset = $( this ).css( pos ).offset().top;
- if ( topOffset < 0 ) {
- $( this ).css( "top", pos.top - topOffset );
- }
- }
- },
- resizable: false,
- show: null,
- title: null,
- width: 700,
- // callbacks
- beforeClose: null,
- close: null,
- drag: null,
- dragStart: null,
- dragStop: null,
- focus: null,
- open: null,
- resize: null,
- resizeStart: null,
- resizeStop: null
- },
I always have to set the width to false in the following function.
- $(function(){
-
- $( "#dialog" ).dialog({
- autoOpen: true,
- modal: true,
- draggable: false
- });
- });
Nor does anything happen when I want to edit the height, resizable and the other options.
But what am i doing wrong?
Do I have to change it somewhere else?
Thanks in advance guys