[Swift-commit] r7774 - in SwiftApps/tryswift: css js
davidk at ci.uchicago.edu
davidk at ci.uchicago.edu
Thu Apr 17 11:44:15 CDT 2014
Author: davidk
Date: 2014-04-17 11:44:13 -0500 (Thu, 17 Apr 2014)
New Revision: 7774
Modified:
SwiftApps/tryswift/css/tryswift.css
SwiftApps/tryswift/js/logtail.js
Log:
Fixes for overflow and scrolling animation
Modified: SwiftApps/tryswift/css/tryswift.css
===================================================================
--- SwiftApps/tryswift/css/tryswift.css 2014-04-16 22:27:36 UTC (rev 7773)
+++ SwiftApps/tryswift/css/tryswift.css 2014-04-17 16:44:13 UTC (rev 7774)
@@ -27,8 +27,14 @@
#swiftOutputDiv {
width: 100%;
border: 1px solid black;
+ overflow-y: scroll;
+ overflow-x: hidden;
}
+#swiftOutput {
+ width: 100%;
+}
+
#example {
float: left;
}
Modified: SwiftApps/tryswift/js/logtail.js
===================================================================
--- SwiftApps/tryswift/js/logtail.js 2014-04-16 22:27:36 UTC (rev 7773)
+++ SwiftApps/tryswift/js/logtail.js 2014-04-17 16:44:13 UTC (rev 7774)
@@ -114,7 +114,7 @@
}
function scroll(where) {
- $("#swiftOutput").animate({ scrollTop: $('#swiftOutput')[0].scrollHeight}, 'slow');
+ $("#swiftOutputDiv").animate({ scrollTop: $('#swiftOutputDiv')[0].scrollHeight}, 'slow');
}
function show_log() {
More information about the Swift-commit
mailing list