Resizable not resizing as it should.

Resizable not resizing as it should.

Here is the jQuery UI in use

I don't have any widths set for my resizable objects, but for some reason, the boxes can't be resized to the full width of the container.. it seems to be about half. Sometimes the width freaks out and gets stuck at any size it wants to stay at.

Here's the code I'm using as of this post.. I will probably continue to tweak.

  1. // create layout drawing - create_layouts.php NEW
  2. $(function() {
  3. $("#createLayoutDrawing").resizable({
  4. grid: 12,
  5. containment: '#mainContent',
  6. maxWidth: 696,
  7. minWidth: 696,
  8. minHeight: 348
  9. });
  10. $("#createLayoutDrawing .resizable").resizable({
  11. /*alsoResize: '#createLayoutDrawing div.artboardElement',*/
  12. grid: [8, 8],
  13. containment: '#createLayoutDrawing'/*,
  14. maxWidth: 696,
  15. minWidth:100,
  16. minHeight:100*/
  17. });
  18. $("#createLayoutDrawing .resizable").draggable({
  19. //stack: { group: 'cuts', min: 50 },
  20. zIndex: 2700,
  21. grid: [8, 8],
  22. handle: 'h3',
  23. containment:'#createLayoutDrawing'
  24. });
  25. /*$("#createLayoutDrawing .resizable").selectable({
  26. });*/
  27. $("ul#availableDrawings").selectable({
  28. });
  29. $("ul#artboardElements").selectable({
  30. });
  31. $("ul#artboardElements li h3").selectable('disable');
  32. $("ul#artboardElements li h4").selectable('disable');
  33. });

    • Topic Participants

    • marty