cbouy / mols2grid

Interactive molecule viewer for 2D structures

Home Page:https://mols2grid.readthedocs.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Fit size of the grid based on the number of rows and image size

cbouy opened this issue · comments

The current height of the iframe that displays the grid is set to 600, which fits nicely with the default option but doesn't make much sense when using a different number of rows or image size.
Ideally the default height should be automatically calculated (from the n_rows, image size, gap, and other parameters) to fit the full document without overflowing