AshesOfOwls / jquery.shapeshift

A dynamic grid system with drag and drop functionality.
http://ashesofowls.github.com/jquery.shapeshift/
MIT License
1.67k stars 311 forks source link

Differents Colspans and heights issue #66

Open Lrtist opened 11 years ago

Lrtist commented 11 years ago

Hi, McPants. Thank you for your job. It's Just great! I have an issue with the following disposal: shapshifissue

http://jsfiddle.net/QzAGF/1/

It Throws: Uncaught TypeError: Cannot call method 'replace' of undefined Can you help me to figure that out?

jackmarketon commented 11 years ago

I think your width + columns: 2 is breaking it.

Remove your columns, and change the width on parent container. See: http://jsfiddle.net/QzAGF/2/

AshesOfOwls commented 11 years ago

Thanks Jack, that looks right

Lrtist commented 11 years ago

Thank you. But what I need is a 2 colum table with divs that can take 1 or two colums. These divs can mesure a base height (that represents a line) or the double (which means it takes 2 lines): tab1

Actually I'am able to do it but the following disposition breaks it: tab2

See: http://jsfiddle.net/MJTVu/

jackmarketon commented 11 years ago

Remove the column: 2 from your code, and it works fine.

http://jsfiddle.net/MJTVu/1/

AshesOfOwls commented 11 years ago

I think this is related to another issue, #30 , in which you may be initializing the container with columns that span beyond the initial width of the container.