@@ -67,10 +67,15 @@ var control = (function(){
6767view [ state . get ( ) . link . style ] ( ) ;
6868} ;
6969var _layout = function ( ) {
70- helper . removeClass ( html , "is-layout-fludi " ) ;
70+ helper . removeClass ( html , "is-layout-fluid " ) ;
7171helper . removeClass ( html , "is-layout-wide" ) ;
7272helper . removeClass ( html , "is-layout-thin" ) ;
7373helper . addClass ( html , "is-layout-" + state . get ( ) . layout . container ) ;
74+ if ( state . get ( ) . layout . scrollPastEnd ) {
75+ helper . addClass ( html , "is-scroll-past-end" ) ;
76+ } else {
77+ helper . removeClass ( html , "is-scroll-past-end" ) ;
78+ } ;
7479} ;
7580var _editAdd = function ( ) {
7681if ( state . get ( ) . header . editAdd . active ) {
@@ -344,6 +349,14 @@ var control = (function(){
344349data . save ( ) ;
345350} , false ) ;
346351} ) ;
352+ helper . e ( ".control-layout-scroll-past-end" ) . addEventListener ( "change" , function ( ) {
353+ state . change ( {
354+ path : "layout.scrollPastEnd" ,
355+ value : this . checked
356+ } ) ;
357+ render ( ) ;
358+ data . save ( ) ;
359+ } , false ) ;
347360} ;
348361
349362var update = function ( ) {
@@ -366,6 +379,7 @@ var control = (function(){
366379helper . e ( ".control-header-accent-active" ) . checked = state . get ( ) . header . accent . active ;
367380helper . e ( ".control-layout-alignment-" + state . get ( ) . layout . alignment ) . checked = true ;
368381helper . e ( ".control-layout-container-" + state . get ( ) . layout . container ) . checked = true ;
382+ helper . e ( ".control-layout-scroll-past-end" ) . checked = state . get ( ) . layout . scrollPastEnd ;
369383} ;
370384
371385var init = function ( ) {
0 commit comments