jQWidgets Forums

Forum Replies Created

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • in reply to: Binding widget to input box Binding widget to input box #3473

    dalberto
    Member

    Thanks for the heads up Peter!


    dalberto
    Member

    Thanks Peter! Again, really great work with jQWidgets!


    dalberto
    Member

    I have just a few more questions.

    I noticed this elsewhere when using the splitter, but I figured this is as good a time to ask as any.

    I set the size of the splitter and the sizes of the panels based on percentages, based on this example: http://www.jqwidgets.com/splitter-auto-resizing/

    Everything works fine, except the size of the last panel. I set the size of the splitter itself to 50% of its parent element (which is irrelevant here), and then the size of every panel to 20% (I have 5 panels in total). The first 4 panels have the correct size (20%), but the last one has what’s left over from the div enclosing the splitter. In my case, the last panel’s size ends up being around 15%.

    I imagine it has to do with the fact that the splitter bars have a width of a few pixels, and eventually they all add up to a sizable chunk of the enclosing div’s total width, and so the last panel takes up the remainder of the enclosing div.

    My first question: is there any way around this?

    My second question: I noticed that if the dragging occurs outside of the splitter, the values can go on without being updated. I tried to account for this by binding the ‘resize’ event to the splitter, similar to the binding that occurs with resizeStart, but it did not work. I guess it would work similar to the “Events” Demo for the splitter. I’d like for the splitter to be accurate even if the dragging event wasn’t able to provide live updating. Essentially, I’d like a fallback, so that if live updating doesn’t work (because the dragging didn’t occur within the splitter), I’m able to update size information.

    Thanks again!


    dalberto
    Member

    Thank you so much! This is exactly what I needed! Awesome work on jqwidgets!

    Thanks again!!!

Viewing 4 posts - 1 through 4 (of 4 total)