parent
04c4fa49b8
commit
0748b68335
@ -318,7 +318,7 @@ body {
|
|||||||
max-height: 400px;
|
max-height: 400px;
|
||||||
word-wrap: normal;
|
word-wrap: normal;
|
||||||
}
|
}
|
||||||
.reveal pre.remaining-height code {
|
.reveal pre.stretch code {
|
||||||
height: 100%;
|
height: 100%;
|
||||||
max-height: 100%;
|
max-height: 100%;
|
||||||
|
|
||||||
@ -355,7 +355,7 @@ body {
|
|||||||
vertical-align: top;
|
vertical-align: top;
|
||||||
}
|
}
|
||||||
|
|
||||||
.reveal .remaining-height {
|
.reveal .stretch {
|
||||||
max-width: none;
|
max-width: none;
|
||||||
max-height: none;
|
max-height: none;
|
||||||
}
|
}
|
||||||
|
2
css/reveal.min.css
vendored
2
css/reveal.min.css
vendored
File diff suppressed because one or more lines are too long
10
js/reveal.js
10
js/reveal.js
@ -1001,6 +1001,9 @@ var Reveal = (function(){
|
|||||||
slideHeight = config.height,
|
slideHeight = config.height,
|
||||||
slidePadding = 20; // TODO Dig this out of DOM
|
slidePadding = 20; // TODO Dig this out of DOM
|
||||||
|
|
||||||
|
// Layout the contents of the slides
|
||||||
|
layoutSlideContents( config.width, config.height, slidePadding );
|
||||||
|
|
||||||
// Slide width may be a percentage of available width
|
// Slide width may be a percentage of available width
|
||||||
if( typeof slideWidth === 'string' && /%$/.test( slideWidth ) ) {
|
if( typeof slideWidth === 'string' && /%$/.test( slideWidth ) ) {
|
||||||
slideWidth = parseInt( slideWidth, 10 ) / 100 * availableWidth;
|
slideWidth = parseInt( slideWidth, 10 ) / 100 * availableWidth;
|
||||||
@ -1014,9 +1017,6 @@ var Reveal = (function(){
|
|||||||
dom.slides.style.width = slideWidth + 'px';
|
dom.slides.style.width = slideWidth + 'px';
|
||||||
dom.slides.style.height = slideHeight + 'px';
|
dom.slides.style.height = slideHeight + 'px';
|
||||||
|
|
||||||
// Layout the contents of the slides
|
|
||||||
layoutSlideContents( config.width, config.height, slidePadding );
|
|
||||||
|
|
||||||
// Determine scale of content to fit within available space
|
// Determine scale of content to fit within available space
|
||||||
scale = Math.min( availableWidth / slideWidth, availableHeight / slideHeight );
|
scale = Math.min( availableWidth / slideWidth, availableHeight / slideHeight );
|
||||||
|
|
||||||
@ -1073,8 +1073,8 @@ var Reveal = (function(){
|
|||||||
*/
|
*/
|
||||||
function layoutSlideContents( width, height, padding ) {
|
function layoutSlideContents( width, height, padding ) {
|
||||||
|
|
||||||
// Handle sizing of elements with the 'remaining-height' class
|
// Handle sizing of elements with the 'stretch' class
|
||||||
toArray( dom.slides.querySelectorAll( 'section > .remaining-height' ) ).forEach( function( element ) {
|
toArray( dom.slides.querySelectorAll( 'section > .stretch' ) ).forEach( function( element ) {
|
||||||
|
|
||||||
// Determine how much vertical space we can use
|
// Determine how much vertical space we can use
|
||||||
var remainingHeight = getRemainingHeight( element, ( height - ( padding * 2 ) ) );
|
var remainingHeight = getRemainingHeight( element, ( height - ( padding * 2 ) ) );
|
||||||
|
4
js/reveal.min.js
vendored
4
js/reveal.min.js
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user