Another thing...

When using the resizable plugin, and by using it I mean resizing the
window, it somehow creates bars around my window (some ui-resizable-
handle).
Why is it bad news ? Because when I perform a double click on the
window title, it hides the contents, limiting it as the title height
(as under linux). But because of those handles, the window does not
"close" ! The handles force the window to keep a certain dimension,
which is absolutely not what I want.
Another thing : resizing an element somehow mess the top and left
position. Not visually, but in the CSS.
I mean :
I launch my application. I move a window toward the top left edge. The
console indicates me that top and left are "0px".
Now, I resize the window thanks to the bottom right handle, and
increase the size by just one pixel (it's enough).
Now, the console indicates me an absolute positionning for top and
left values.

I really _LOVE_ jQuery, but with that resizable plugin, I'm going to
hang myself with my computer cables :'(

Please, some help would be really appreciated.

PS : note that for the "absolute top left" bug, I *may* find a
workaround by using absolute positionning for my windows all the
time... But if possible I would like to keep my relative positionning
intact.


On 23 mai, 23:49, Lideln <[email protected]> wrote:
> 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 <[email protected]> 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-areayouare
> > 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,

Reply via email to