I forgot : My example, using this pluggin, is : [code] SApplication.oContent.append('<div class="window" id="window_' + sPage + '">\ <div class="windowTitle">\ <div class="windowTitleIcon window_icon_' + sIcon + '"></div> \ <div class="windowTitleButtons"></div>\ <div class="windowTitleTitle">' + sTitle + '</div>\ </div>\ <div class="windowContent">' + sHTML + '</div>\ </div>'); var oWindow = $('#window_' + sPage, SApplication.oContent); oWindow.draggable({ cursor: 'default', handle: '.windowTitleTitle', containment: SApplication.oContent, scroll: false, stop: SApplication.onDragStop }); oWindow.resizable({ alsoResize: $('.windowContent', oWindow), containment: SApplication.oContent, minHeight: 100, minWidth: 200 }); [/code]
If you need anything else, please let me know On 23 mai, 23:45, Lideln <lid...@gmail.com> wrote: > Hi all, > > I am using the jquery-ui resizable plugin, but I encountered some > issues : > 1) I had to add the ".ui-resizable" css for that plugin to work > (hopefully I found a website explaining that workaround) > 2) there is no "scroll" option like in draggable (!?) > 3) the containment option does not work vertically on the official > example (http://jqueryui.com/demos/resizable/#constrain-areayou are > constrained horizontally, but not vertically). In my application, the > containment option is buggy too : it seems to take into account the > container outer margins, or something else, I don't know what, but my > windows are constrained far too soon (no it's not maxWidth/maxHeight) > 4) the alsoResize option is buggy : when the containment option is > used, the "alsoResized" element is not constrained as well :-( > > Am I missing something ? Does someone have info on what's going on > with this plugin ? (1.7.1, it's not an alpha version). Can someone > tell me if I can do something to fix that, or if there is another > resizable plugin available out there ? (like the one used inwww.chiptune.com > ) > > Thanks a lot everybody ! > > Kind regards,