# HG changeset patch # User Eugene Ostroukhov # Date 1278439019 25200 # Node ID 15592887bf5e11841552be99b4d3c0225d54ca25 # Parent 431f085807027ee7ce079ac1eaaeabeb33e16472 Bug 3063 - Provide a feedback when there is console output diff -r 431f08580702 -r 15592887bf5e org.symbian.tools.wrttools.previewer/preview/css/style.css --- 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; } diff -r 431f08580702 -r 15592887bf5e org.symbian.tools.wrttools.previewer/preview/script/helper.js --- 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( { diff -r 431f08580702 -r 15592887bf5e org.symbian.tools.wrttools.previewer/preview/wrt_preview.html --- 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 @@
-

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.
Examples:
-
window.console.log('log %d', 123);
-
window.console.debug('debug %s', "string");
-
window.console.info('info %s', "string " + 123);
-
window.console.warn('warn %f', 123.456);
-
window.console.error('error');

+ in printf format.
Examples:
+   window.console.log('log %d', 123);
+   window.console.debug('debug %s', "string");
+   window.console.info('info %s', "string " + 123);
+   window.console.warn('warn %f', 123.456);
+   window.console.error('error');