It seems to me that many are building “button bar” custom widgets, however the custom widget occupies a lot of space and when shrunk does not look nice because the bottom bordes disappears and the left-side green “notification highlight” extends past the resized button bar. Looking with developer tools it seems to me that setting
iframe.custom_view {
height: 70px;
}
should do the trick, however I am not able to set this in my html section. Any ideas how to achieve this?
Thanks in advance.
Replying to myself. One would have to modify the height property of the view_data_pane_container which contains the iframe through jQuery, however this is not possible due to a “Permission denied to access property “document” on cross-origin object” error (grist and the widget are in different domains). Still experimenting but getting a bit pessimistic.
Final reply to myself. I managed to get it working nicely. I will post the code in the “Showcase section”