-
Bug
-
Resolution: Fixed
-
Major
-
2.7
-
None
-
MOODLE_27_STABLE
-
MOODLE_27_STABLE
-
MDL-45034-master -
There is a conflict between
- allowing the teacher to design a page with fixed-size images (eg buttons or instructional images with text are common use cases).
- being responsive and always shrinking images to fit on the current screen.
After some discussion among FRONTEND, I think this could be a good compromise to improve the Atto dialog in 2.7 to make it easier for people to choose options for their images:
- Keep height and width fields working as they are.
- Rename "Keep ratio" checkbox to "Auto size" and have it on by default.
- When "Auto size" is on:
- Updating one of the size fields will auto-update the other
- A standard class is added to the image HTML so that when displayed in a Bootstrap theme the image will responsively shrink on small screens
- When "Auto size" is off:
- The size fields stay exactly as you set them
- A standard class is not added to the HTML image and the image will not responsively shrink on small screens.
Also, remove most of the options for Image alignment and bring it down to top, bottom, left and right. MDL-44826
Finally, change "Insert image" button to "Save image".
- Discovered while testing
-
MDL-45103 Add text to the atto image preview so you can see the effect of the alignment.
-
- Closed
-
- has a non-specific relationship to
-
MDL-44826 Atto Too many image alignment options
-
- Closed
-
- has been marked as being related by
-
MDL-42195 Bootstrap makes all images responsive with no way to disable this behaviour via CSS
-
- Closed
-
-
MDL-45017 Allow responsive images in user generated content
-
- Closed
-
- is blocked by
-
MDL-44826 Atto Too many image alignment options
-
- Closed
-