tizen-winsets: searchbar: scroll to the top when type the character
authorMinkyu Kang <mk7.kang@samsung.com>
Fri, 11 Jan 2013 05:20:48 +0000 (14:20 +0900)
committerYoumin Ha <youmin.ha@samsung.com>
Fri, 11 Jan 2013 08:41:56 +0000 (17:41 +0900)
When drag the list to bottom, search result does not show correctly.
(N_SE-20135)

Change-Id: I36dae8c8c31c3811aee6e10eeace6002eae11ac2

demos/tizen-winsets/widgets/searchbar/searchbar.js

index ac0ca19..f335a69 100755 (executable)
@@ -12,6 +12,8 @@ $( "#searchbar-demo-page" ).bind( "pageshow", function(){
                                $( this ).hide();\r
                        }\r
                });\r
+\r
+               $("#searchbar-content").scrollview("scrollTo", 0, 0, 0);\r
        });\r
 });\r
 \r
@@ -19,4 +21,4 @@ $( "#searchbar-demo-page-button" ).bind( "pageshow", function(){
        $( ".ui-btn-search-front-icon" ).bind( "vclick", function(){\r
                window.alert( "front button in searchbar pressed!" );\r
        });\r
-});
\ No newline at end of file
+});\r