Skip to content

Scrollable design view (#13217 part 1)

Tom Quirk requested to merge scrollable-design-view into master

What does this MR do?

Updates the layout of the Design view such that design-presentation component is capable of overflowing.

In this MR, the only user-facing change is the addition of 16px of padding at the bottom of the design image for larger images (see screenshots below). This (inadvertently) appears to fix a bug where the bottom of larger images were previously not visible. Notice that even with the addition of the padding, the blue comment pins remain in the correct position.

️ This MR is currently targeting branch design-presentation-component and depends on !22852 (merged) being merged.

Context

We originally wanted to enable scrolling by default for larger images i.e. when an image height > width, we would let the image overflow vertically (work captured in !22857 (closed)). It was decided to not use this behaviour for the time being and instead retain the existing behaviour.

The changes in this MR are arguably still an improvement (and essential for !22863 (merged)), hence why it exists!

Screenshots

Screenshots added to demonstrate that existing behaviour is retained.

Current behaviour Behaviour with this MR applied
Desktop (small image) Desktop (small image)
Screen_Shot_2020-01-14_at_12.44.37_pm Screen_Shot_2020-01-14_at_12.47.33_pm
Desktop (large image) Desktop (large image)
Screen_Shot_2020-01-14_at_12.44.19_pm Screen_Shot_2020-01-14_at_12.47.20_pm
Mobile Mobile
Screen_Shot_2020-01-14_at_12.44.57_pm Screen_Shot_2020-01-14_at_12.48.04_pm

Does this MR meet the acceptance criteria?

Conformity

Availability and Testing

Edited by 🤖 GitLab Bot 🤖

Merge request reports