OSDN Git Service

docs: style and script changes for android u classes
authorScott Main <smain@google.com>
Fri, 16 Dec 2011 01:34:40 +0000 (17:34 -0800)
committerScott Main <smain@google.com>
Fri, 16 Dec 2011 01:34:40 +0000 (17:34 -0800)
Change-Id: I5866541bb9dd41329aa02328b805959c8f675f8c

tools/droiddoc/templates-sdk/assets/android-developer-docs.css
tools/droiddoc/templates-sdk/assets/android-developer-docs.js

index 2e15a68..9378cf3 100644 (file)
@@ -67,8 +67,7 @@
 
 #side-nav li {
   padding:0;
-  line-height:16px;
-  white-space:nowrap;
+  padding:1px 0 1px 0;
   zoom:1;
 }
 
@@ -80,6 +79,7 @@
 }
 
 #side-nav li a {
+  display: inline-block; /* needed to apply padding to line-wraps */
   text-decoration:none;
   padding: 0 0 0 18px;
   zoom:1;
index 0cac2fc..c15584f 100644 (file)
@@ -425,7 +425,7 @@ function loadLast(cookiePath) {
 
 $(window).unload(function(){
   var path = getBaseUri(location.pathname);
-  if (path.indexOf("/reference/") != -1) {
+  if ((path.indexOf("/reference/") != -1) || (path.indexOf("/training/") != -1)) {
     writeCookie("lastpage", path, "reference", null);
   } else if (path.indexOf("/guide/") != -1) {
     writeCookie("lastpage", path, "guide", null);