[Jifty-commit] r762 - in jifty/trunk: .
jifty-commit at lists.jifty.org
jifty-commit at lists.jifty.org
Tue Mar 28 21:38:21 EST 2006
Author: jesse
Date: Tue Mar 28 21:38:21 2006
New Revision: 762
Modified:
jifty/trunk/ (props changed)
jifty/trunk/doc/talks/takahashi.js
Log:
r10526 at hualien: jesse | 2006-03-29 11:33:49 +0900
* Smarter font sizing
Modified: jifty/trunk/doc/talks/takahashi.js
==============================================================================
--- jifty/trunk/doc/talks/takahashi.js (original)
+++ jifty/trunk/doc/talks/takahashi.js Tue Mar 28 21:38:21 2006
@@ -174,7 +174,7 @@
if (new_fs > 32) {
new_fs = new_fs - (new_fs % 32)
}
- if (code_listing) { new_fs = 48;}
+ //if (code_listing) { new_fs = 48;}
this.content.setAttribute('style', 'top: 0');
this.content.setAttribute('style', 'font-size:'+ new_fs + "px");
@@ -186,8 +186,8 @@
}
var content_h = this.content.boxObject.height;
- if(content_h >= (canvas_h - 50)){ // That 50 is space for subtitles
- new_fs = Math.round(((canvas_h-50)/content_h) * new_fs);
+ if(content_h >= (canvas_h - 70)){ // That 50 is space for subtitles
+ new_fs = Math.round(((canvas_h-70)/content_h) * new_fs);
this.content.setAttribute('style', 'font-size:'+ new_fs + "px");
content_h = this.content.boxObject.height;
}
More information about the Jifty-commit
mailing list