Fossil SCM
Adapt /pikchrshow to latest skin changes to keep the page footer from scrolling off the screen.
Commit
7b4bbc8203e001b80390a71db299854cb39fa2a588b5261b9399dafeedb53233
Parent
a7255ba561572b6…
2 files changed
+1
-1
+4
-4
+1
-1
| --- src/fossil.page.pikchrshow.js | ||
| +++ src/fossil.page.pikchrshow.js | ||
| @@ -316,11 +316,11 @@ | ||
| 316 | 316 | else{ |
| 317 | 317 | /*If it's from the server, it's already rendered, but this |
| 318 | 318 | gets all labels/headers in sync.*/ |
| 319 | 319 | P.renderPreview(); |
| 320 | 320 | } |
| 321 | - } | |
| 321 | + } | |
| 322 | 322 | }/*F.onPageLoad()*/); |
| 323 | 323 | |
| 324 | 324 | /** |
| 325 | 325 | Updates the preview view based on the current preview mode and |
| 326 | 326 | error state. |
| 327 | 327 |
| --- src/fossil.page.pikchrshow.js | |
| +++ src/fossil.page.pikchrshow.js | |
| @@ -316,11 +316,11 @@ | |
| 316 | else{ |
| 317 | /*If it's from the server, it's already rendered, but this |
| 318 | gets all labels/headers in sync.*/ |
| 319 | P.renderPreview(); |
| 320 | } |
| 321 | } |
| 322 | }/*F.onPageLoad()*/); |
| 323 | |
| 324 | /** |
| 325 | Updates the preview view based on the current preview mode and |
| 326 | error state. |
| 327 |
| --- src/fossil.page.pikchrshow.js | |
| +++ src/fossil.page.pikchrshow.js | |
| @@ -316,11 +316,11 @@ | |
| 316 | else{ |
| 317 | /*If it's from the server, it's already rendered, but this |
| 318 | gets all labels/headers in sync.*/ |
| 319 | P.renderPreview(); |
| 320 | } |
| 321 | } |
| 322 | }/*F.onPageLoad()*/); |
| 323 | |
| 324 | /** |
| 325 | Updates the preview view based on the current preview mode and |
| 326 | error state. |
| 327 |
+4
-4
| --- src/fossil.page.pikchrshowasm.js | ||
| +++ src/fossil.page.pikchrshowasm.js | ||
| @@ -392,11 +392,11 @@ | ||
| 392 | 392 | setCurrentText(val); |
| 393 | 393 | }, false); |
| 394 | 394 | }/*Examples*/ |
| 395 | 395 | |
| 396 | 396 | /** |
| 397 | - TODO: Handle load/import of an external pikchr file. | |
| 397 | + TODO? Handle load/import of an external pikchr file. | |
| 398 | 398 | */ |
| 399 | 399 | if(0) E('#load-pikchr').addEventListener('change',function(){ |
| 400 | 400 | const f = this.files[0]; |
| 401 | 401 | const r = new FileReader(); |
| 402 | 402 | const status = {loaded: 0, total: 0}; |
| @@ -479,13 +479,13 @@ | ||
| 479 | 479 | off-screen. */ |
| 480 | 480 | const appViews = EAll('.app-view'); |
| 481 | 481 | const elemsToCount = [ |
| 482 | 482 | /* Elements which we need to always count in the |
| 483 | 483 | visible body size. */ |
| 484 | - E('body > div.header'), | |
| 485 | - E('body > div.mainmenu'), | |
| 486 | - E('body > div.footer') | |
| 484 | + E('body > header'), | |
| 485 | + E('body > nav.mainmenu'), | |
| 486 | + E('body > footer') | |
| 487 | 487 | ]; |
| 488 | 488 | const resized = function f(){ |
| 489 | 489 | if(f.$disabled) return; |
| 490 | 490 | const wh = window.innerHeight; |
| 491 | 491 | var ht; |
| 492 | 492 |
| --- src/fossil.page.pikchrshowasm.js | |
| +++ src/fossil.page.pikchrshowasm.js | |
| @@ -392,11 +392,11 @@ | |
| 392 | setCurrentText(val); |
| 393 | }, false); |
| 394 | }/*Examples*/ |
| 395 | |
| 396 | /** |
| 397 | TODO: Handle load/import of an external pikchr file. |
| 398 | */ |
| 399 | if(0) E('#load-pikchr').addEventListener('change',function(){ |
| 400 | const f = this.files[0]; |
| 401 | const r = new FileReader(); |
| 402 | const status = {loaded: 0, total: 0}; |
| @@ -479,13 +479,13 @@ | |
| 479 | off-screen. */ |
| 480 | const appViews = EAll('.app-view'); |
| 481 | const elemsToCount = [ |
| 482 | /* Elements which we need to always count in the |
| 483 | visible body size. */ |
| 484 | E('body > div.header'), |
| 485 | E('body > div.mainmenu'), |
| 486 | E('body > div.footer') |
| 487 | ]; |
| 488 | const resized = function f(){ |
| 489 | if(f.$disabled) return; |
| 490 | const wh = window.innerHeight; |
| 491 | var ht; |
| 492 |
| --- src/fossil.page.pikchrshowasm.js | |
| +++ src/fossil.page.pikchrshowasm.js | |
| @@ -392,11 +392,11 @@ | |
| 392 | setCurrentText(val); |
| 393 | }, false); |
| 394 | }/*Examples*/ |
| 395 | |
| 396 | /** |
| 397 | TODO? Handle load/import of an external pikchr file. |
| 398 | */ |
| 399 | if(0) E('#load-pikchr').addEventListener('change',function(){ |
| 400 | const f = this.files[0]; |
| 401 | const r = new FileReader(); |
| 402 | const status = {loaded: 0, total: 0}; |
| @@ -479,13 +479,13 @@ | |
| 479 | off-screen. */ |
| 480 | const appViews = EAll('.app-view'); |
| 481 | const elemsToCount = [ |
| 482 | /* Elements which we need to always count in the |
| 483 | visible body size. */ |
| 484 | E('body > header'), |
| 485 | E('body > nav.mainmenu'), |
| 486 | E('body > footer') |
| 487 | ]; |
| 488 | const resized = function f(){ |
| 489 | if(f.$disabled) return; |
| 490 | const wh = window.innerHeight; |
| 491 | var ht; |
| 492 |