Why no column-count? (Enhancement)
I would like for my book to always be displayed in 1 column. However, in some font-size/book-width configurations, 2 columns are formed.
CSS has a column-count property, which defines the maximum number of columns. I have tested and this works when set on the body. Why can this property not be set through the columns instance member?
For example: columns(width: number, height: number, columnWidth: number, gap: number, COUNT: NUMBER)
It seems that the only way to currently achieve this is by setting the divisor property of the layout to 1, or manipulating the width as follows: columnWidth = (_layout.width + _layout.gap) * _layout.divisor
@yh54321 try with minSpreadWidth. You can set the minimun width when the two columns config will trigger. ie:
book.renderTo(element, {
width,
height,
manager: 'continuous',
minSpreadWidth: 1200,
resizeOnOrientationChange: true,
flow: 'paginated',
});
Here in pages under 1200px, only one column will be shown.
Hope it helps.