-
Notifications
You must be signed in to change notification settings - Fork 40
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
slotWidth vs slotHeight #49
Comments
I have found a solution, but it requires to modify the source code a little. Maybe you can add this feature officialy ? (Or not, up to you). BTW, I'm not aware of any other way of doing this.
Thanks for reading |
@vd3d The SlotWidth feature can't be implemented for this package since there is no horizontal scrolling option. If we allowed you to set the width, there's a high chance that the last slot might not fit properly, leaving it with only a portion of the slotWidth. This would cause issues when placing widgets in that slot. The width of each slot is determined by the slotCount property and the total width of the dashboard you've provided. Additionally, the slotAspectRatio helps set the height of each block when the slotHeight property is not specified. If you look at the code in |
Hi,
I wish to have slots of fixed size in pixels, I have see the following parameters:
slotHeight
slotAspectRatio
I have not found any 'slotWidth' parameter. But still I have try this:
slotHeight: 32
slotAspectRatio : 1
But it is not accepted and I got an exception. So, is there a way to got a fixed size (for the slots) for width & heights ?
Thanks
The text was updated successfully, but these errors were encountered: