[TIC-Web] fix the height of a div's full content 05/110605/1
authorChangHyun Lee <leechwin.lee@samsung.com>
Tue, 17 Jan 2017 07:06:46 +0000 (16:06 +0900)
committerChangHyun Lee <leechwin.lee@samsung.com>
Tue, 17 Jan 2017 07:06:46 +0000 (16:06 +0900)
Fixed a bug where scrolling did not follow the log.

Change-Id: I62923c807867968c46cbaa646cce841fad0f422d
Signed-off-by: ChangHyun Lee <leechwin.lee@samsung.com>
public/src/js/page/image.js

index 97f96ed..fdb2183 100644 (file)
@@ -60,7 +60,7 @@ define([
                 log: data
             });
             var $imageNewLog = $('#tic-image-new-log').append(logItem);
-            $imageNewLog.animate({ scrollTop : $imageNewLog.height() }, 'slow');
+            $imageNewLog.animate({ scrollTop : $imageNewLog.prop('scrollHeight') }, 'fast');
         });
 
         // when finish