Bug 3063 - Provide a feedback when there is console output
authorEugene Ostroukhov <eugeneo@symbian.org>
Tue, 06 Jul 2010 10:56:59 -0700
changeset 422 15592887bf5e
parent 421 431f08580702
child 423 742a5cb59f9a
Bug 3063 - Provide a feedback when there is console output
org.symbian.tools.wrttools.previewer/preview/css/style.css
org.symbian.tools.wrttools.previewer/preview/script/helper.js
org.symbian.tools.wrttools.previewer/preview/wrt_preview.html
--- a/org.symbian.tools.wrttools.previewer/preview/css/style.css	Tue Jul 06 09:46:36 2010 -0700
+++ b/org.symbian.tools.wrttools.previewer/preview/css/style.css	Tue Jul 06 10:56:59 2010 -0700
@@ -789,7 +789,7 @@
 	margin-left: 5ex;
 	width: 16px;
 	height: 16px;
-	background-image: url(../script/jquery-ui/css/ui-darkness/images/ui-icons_cccccc_256x240.png);
+	background-image: url(../script/jquery-ui/css/ui-darkness/images/ui-icons_a83300_256x240.png);
 	background-position: -0px -144px;
 }
 
--- a/org.symbian.tools.wrttools.previewer/preview/script/helper.js	Tue Jul 06 09:46:36 2010 -0700
+++ b/org.symbian.tools.wrttools.previewer/preview/script/helper.js	Tue Jul 06 10:56:59 2010 -0700
@@ -321,7 +321,11 @@
 			selected : 0
 		});
 		$(this).hide();
-		$('Console-Toggle-Button').animate({scrollTop: $('#Console-Toggle-Button')[0].attr("scrollHeight")});
+		window
+		.setTimeout(
+				function() {
+					$('#preview-ui-bottom-body')[0].scrollTop = $('#preview-ui-bottom-body')[0].scrollHeight;
+				}, 300);
 		return NOKIA.layout._console_minimized;
 	});
 	$("#clockwise").button( {
--- a/org.symbian.tools.wrttools.previewer/preview/wrt_preview.html	Tue Jul 06 09:46:36 2010 -0700
+++ b/org.symbian.tools.wrttools.previewer/preview/wrt_preview.html	Tue Jul 06 10:56:59 2010 -0700
@@ -92,16 +92,15 @@
 		</ul>
 		<div id="console" class="hide" style="height: 100%">
 			<span id="Console-Clear-Button"></span>
-			<div style="clear:left;"></div>
 			<div id="preview-ui-bottom-body" class="Console">
 				<p id="hint">Use window.console object log, debug, info, warn and error methods 
 				to output debug information. All methods can format strings if supplied arguments 
-				in printf format.<br><b>Examples:</b></br>
-				<br>	window.console.log('log %d', 123);</br>
-				<br>	window.console.debug('debug %s', "string");</br>
-				<br>	window.console.info('info %s', "string " + 123);</br>
-				<br>	window.console.warn('warn %f', 123.456);</br>
-				<br>	window.console.error('error');</br></p>
+				in printf format.<br/><b>Examples:</b><br/>
+				&nbsp;&nbsp;window.console.log('log %d', 123);<br/>
+				&nbsp;&nbsp;window.console.debug('debug %s', "string");<br/>
+				&nbsp;&nbsp;window.console.info('info %s', "string " + 123);<br/>
+				&nbsp;&nbsp;window.console.warn('warn %f', 123.456);<br/>
+				&nbsp;&nbsp;window.console.error('error');</p>
 			</div>
 		</div>
 		<div id="event-acceleration" class="hide">