Issue: One screen on my canvas app has a section for a gallery. In the live app, in some browsers, I cannot scroll all the way through the full gallery. Scrolling stops short of the final records, cutting off the record so it cannot be read.
Goal: I would like to build a gallery that fits into a fixed set of dimensions on a screen and that consistently scrolls through to the bottom of all gallery records that are related to the current main record on the screen.
Background: This app is not built responsively. It is only used on laptops and monitors, so resizing for screens is not a need. There are many other galleries in the app, but only this one has a scrolling issue. This is the only gallery where the individual record has stacked items (a title, a text field with varying contents under that, and a time stamp under that).
The text field contains notes, so it can be a range of sizes.
Attempts:
- A flexible gallery. I created a flexible gallery with overflow on for scrolling. The template height is computed using a field in each record that sums the three stacked items. The text field is set to autoheight. I tried with flexible height on and off. With flexible height off, this works great in studio on all computers and in the browser in some computers. And sometimes, the scrolling stops before the end of the gallery.
- A container with a flexible gallery inside of it.
- A full container solution with the gallery itself inside of a container, then a vertical container within the gallery, with each of the three fields in their own stacked container.
I've tried multiple variations of setting the container and gallery heights as fixed and calculated, layoutminheight (same mix), outer container scrolling on, etc. No combination I've tried so far allows me to put a gallery within a defined set of dimensions on a page, populate the gallery with records where one field is of varying heights, and scroll through that gallery all the way to the bottom.
The gallery items have a wide range of padding at the top, as well, which may be contributing to the scrolling issue. Perhaps the gallery height is maxed out by the padding before all the records can be scrolled through.
The workaround so far for people whose browsers cut of scrolling is for them to reset their screen size lower (e.g., to 75%), then the whole gallery can be scrolled through. This is not an excellent long-time solution for a basic web functionality.
I've found three other posts here so far where people are having the same problem, but none have a solution in the thread.
I've gone back to all of the videos and Office documentation to rebuild the different solutions from scratch, but each time, scrolling works in all browsers in studio, but cuts off before the end of the list in some computers' browsers and not others'.
I believe it would be easier to start from scratch again rather than troubleshoot any of the multiple iterations of the galleries, but I am open to a Plan Z.
If anyone has found a way to consistently scroll to the bottom of gallery with stacked fields per record (rather than a tabular layout), autoheight on for one of the fields, and a defined height for the space the gallery sits in, your insights would be very welcome.