new 'r-stack' helper class for stacking & centering multiple elements

This commit is contained in:
Hakim El Hattab committed 2020-05-11 10:54:02 +02:00
1 parent 1288a3280c
commit eeedaa17e1
7 files changed
+122 -12

No files matched your search

+2 -2
View File
@@ -892,8 +892,8 @@ export default function( revealElement, options ) {
*/
function layoutSlideContents( width, height ) {
// Handle sizing of elements with the 'stretch' class
Util.queryAll( dom.slides, 'section > .stretch' ).forEach( element => {
// Handle sizing of elements with the 'r-stretch' class
Util.queryAll( dom.slides, 'section > .stretch, section > .r-stretch' ).forEach( element => {
// Determine how much vertical space we can use
let remainingHeight = Util.getRemainingHeight( element, height );