tristanguigue / angular-dynamic-layout

A lightweight AngularJS dynamic grid layout
http://tristanguigue.github.io/angular-dynamic-layout/
78 stars 35 forks source link

Calculate column widths using floating point width for parent container #30

Closed craiggoldstone closed 8 years ago

craiggoldstone commented 8 years ago

I encountered a problem where columnWidth * columnCount was greater than the width of the parent container. The root cause is because column calculation was done using the Integer width of the container (.offsetWidth) but should be done using the Float width of the container (.getBoundingClientRect().width), since the float width might be fractionally larger than the rounded .offsetWidth()

craiggoldstone commented 8 years ago

Closed to make individual PRs