You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
this part causes little problems for me, when I'm trying to resize my window:
varcalculatedColumns=(containerWidth+gutter)/columnWidth;// Widths given from getComputedStyle are not precise enough...if(Math.abs(Math.round(calculatedColumns)-calculatedColumns)<COLUMN_THRESHOLD){// e.g. calculatedColumns = 11.998876calculatedColumns=Math.round(calculatedColumns);}this.cols=Math.max(Math.floor(calculatedColumns),1);// in my case NOK:// cols:4 containerWidth:925 colWidth:250// (75px of the right column covered)
The COLUMN_THRESHOLD constant causes that for example this.cols change
from 4 to 3 after the right container border one third of the 4th column overlaps...
Wouldn't it be possible / good to make the COLUM_THRESHOLD adjustable and not constant?
The text was updated successfully, but these errors were encountered:
this part causes little problems for me, when I'm trying to resize my window:
The COLUMN_THRESHOLD constant causes that for example this.cols change
from 4 to 3 after the right container border one third of the 4th column overlaps...
Wouldn't it be possible / good to make the COLUM_THRESHOLD adjustable and not constant?
The text was updated successfully, but these errors were encountered: