[jQuery] Re: UI dialog resize (width & height settings)
Yup $("#myDiv").dialog("option", { width: newXX, height: newYY }); - Richard On Thu, May 21, 2009 at 11:46 AM, c.sokun wrote: > > cool! I will try that is it possible to call it in just one line? > > On May 18, 6:55 pm, "Richard D. Worth" wrote: > > You can only call .dialog({ width: XX, height: YY }) once. That's an > init. > > After that you can change the width and height by calling dialog's option > > method, specifying the option you want to change, and the new value: > > > > $("#myDiv").dialog("option", "width", newXX); > > $("#myDiv").dailog("option", "height", newYY); > > > > - Richard > > > > On Mon, May 18, 2009 at 4:34 AM, c.sokun wrote: > > > > > I had problem when try to reuse div element with ui.dialog(). > > > If I set the width & height the first time it works; but if I call it > > > from second function with different width & height it won't apply the > > > new setting. > > > > > Also if I manually resize the dialog when it appear after close and > > > reopen it use the new size (resized manually) not the one I specified > > > in the code. > > > > > So my question is very simple is it possible to resize the dialog > > > before it show up? >
[jQuery] Re: UI dialog resize (width & height settings)
cool! I will try that is it possible to call it in just one line? On May 18, 6:55 pm, "Richard D. Worth" wrote: > You can only call .dialog({ width: XX, height: YY }) once. That's an init. > After that you can change the width and height by calling dialog's option > method, specifying the option you want to change, and the new value: > > $("#myDiv").dialog("option", "width", newXX); > $("#myDiv").dailog("option", "height", newYY); > > - Richard > > On Mon, May 18, 2009 at 4:34 AM, c.sokun wrote: > > > I had problem when try to reuse div element with ui.dialog(). > > If I set the width & height the first time it works; but if I call it > > from second function with different width & height it won't apply the > > new setting. > > > Also if I manually resize the dialog when it appear after close and > > reopen it use the new size (resized manually) not the one I specified > > in the code. > > > So my question is very simple is it possible to resize the dialog > > before it show up?
[jQuery] Re: UI dialog resize (width & height settings)
You can only call .dialog({ width: XX, height: YY }) once. That's an init. After that you can change the width and height by calling dialog's option method, specifying the option you want to change, and the new value: $("#myDiv").dialog("option", "width", newXX); $("#myDiv").dailog("option", "height", newYY); - Richard On Mon, May 18, 2009 at 4:34 AM, c.sokun wrote: > > I had problem when try to reuse div element with ui.dialog(). > If I set the width & height the first time it works; but if I call it > from second function with different width & height it won't apply the > new setting. > > Also if I manually resize the dialog when it appear after close and > reopen it use the new size (resized manually) not the one I specified > in the code. > > So my question is very simple is it possible to resize the dialog > before it show up?