--- a/ginebra2/chrome/bedrockchrome/bookmarkview.superpage/BookmarkView.html Wed Jun 23 17:59:43 2010 +0300
+++ b/ginebra2/chrome/bedrockchrome/bookmarkview.superpage/BookmarkView.html Tue Jul 06 14:03:49 2010 +0300
@@ -6,7 +6,6 @@
<script src="../../js/3rdparty/jquery-ui/ui.sortable.js" type="text/javascript"></script>
<script src="../../js/LongPress.js" type="text/javascript"></script>
<script src="../../js/Bind.js" type="text/javascript"></script>
- <script src="../../js/ActionButton.js" type="text/javascript"></script>
<script src="bookmarkview.js" type="text/javascript"></script>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link rel="stylesheet" id="CSSLink" type="text/css" href="bookmarkview.css"/>
@@ -14,26 +13,43 @@
<title>Bookmark View</title>
<script type="text/javascript">
+ function scrollToTop()
+ {
+ if(__prevOpenedBookmarkControl)
+ _bookmarkHideControl(__prevOpenedBookmarkControl);
+
+ $('html, body').attr({scrollTop: 0});
+
+ _updateBookmarkViewGoemetry(0);
+ }
+
function updateBookmakrView()
{
+ window.views.WebView.BookmarkTreeView.shown.connect(scrollToTop);
+
launchBookmarkView();
- // set the Width & Height
- $("#bookmarkListId").css({"width": window.innerWidth+"px", "height": window.innerHeight+"px"});
+ //set the Width & Height
+ if (!window.views.WebView.bedrockTiledBackingStoreEnabled())
+ $("#bookmarkListId").css({"width": window.innerWidth+"px", "height": window.innerHeight+"px"});
+
}
- var __sortingEnabled = false;
- var __sortEleOffsetTop = 0;
- window.onresize = function(){
+ var __sortingEnabled = false;
+ var __sortEleOffsetTop = 0;
+ window.onresize = function(){
+
+
+ if (!window.views.WebView.bedrockTiledBackingStoreEnabled())
$("#bookmarkListId").css({"width": window.innerWidth+"px", "height": window.innerHeight+"px"});
- if (__sortingEnabled)
- {
- $('html, body').animate({
- scrollTop: parseInt(__sortEleOffsetTop)}, 1000);
- }
+ if (__sortingEnabled)
+ {
+ $('html, body').animate({
+ scrollTop: parseInt(__sortEleOffsetTop)}, 1000);
}
+ }
</script>
@@ -42,6 +58,7 @@
<body onload=updateBookmakrView()>
<div id="bookmarkListId" class="bookmarkList">
<ul id="bookmarkListTree"></ul>
+ <div id="BottomPad"></div>
</div>
<div class="hiddenLoadImages"></div>