aboutsummaryrefslogtreecommitdiff
path: root/documentation/4.1/api/lib
diff options
context:
space:
mode:
Diffstat (limited to 'documentation/4.1/api/lib')
-rw-r--r--documentation/4.1/api/lib/index.css1
-rw-r--r--documentation/4.1/api/lib/index.js26
-rw-r--r--documentation/4.1/api/lib/template.css4
3 files changed, 21 insertions, 10 deletions
diff --git a/documentation/4.1/api/lib/index.css b/documentation/4.1/api/lib/index.css
index b153113..57c7dd8 100644
--- a/documentation/4.1/api/lib/index.css
+++ b/documentation/4.1/api/lib/index.css
@@ -432,6 +432,7 @@ div#content-container > div#subpackage-spacer {
margin: 1.1rem 0.5rem 0 0.5em;
font-size: 0.8em;
min-width: 8rem;
+ max-width: 16rem;
}
div#packages > h1 {
diff --git a/documentation/4.1/api/lib/index.js b/documentation/4.1/api/lib/index.js
index 1a2e62b..087c975 100644
--- a/documentation/4.1/api/lib/index.js
+++ b/documentation/4.1/api/lib/index.js
@@ -113,20 +113,26 @@ function handleKeyNavigation() {
scroller.container = $container;
scroller.scrollDown = function($elem) {
- var yPos = $elem.offset().top; // offset relative to viewport
- if ($container.height() < yPos || (yPos - $("#search").height()) < 0) {
- $container.animate({
- scrollTop: $container.scrollTop() + yPos - $("#search").height() - 10
- }, 200);
+ var offset = $elem.offset(); // offset relative to viewport
+ if (offset !== undefined) {
+ var yPos = offset.top;
+ if ($container.height() < yPos || (yPos - $("#search").height()) < 0) {
+ $container.animate({
+ scrollTop: $container.scrollTop() + yPos - $("#search").height() - 10
+ }, 200);
+ }
}
};
scroller.scrollUp = function ($elem) {
- var yPos = $elem.offset().top; // offset relative to viewport
- if (yPos < $("#search").height()) {
- $container.animate({
- scrollTop: $container.scrollTop() + yPos - $("#search").height() - 10
- }, 200);
+ var offset = $elem.offset(); // offset relative to viewport
+ if (offset !== undefined) {
+ var yPos = offset.top;
+ if (yPos < $("#search").height()) {
+ $container.animate({
+ scrollTop: $container.scrollTop() + yPos - $("#search").height() - 10
+ }, 200);
+ }
}
};
diff --git a/documentation/4.1/api/lib/template.css b/documentation/4.1/api/lib/template.css
index c120698..d5f89b1 100644
--- a/documentation/4.1/api/lib/template.css
+++ b/documentation/4.1/api/lib/template.css
@@ -248,6 +248,10 @@ body.abstract.type div.big-circle {
background: url("abstract_type.svg") no-repeat center;
}
+body.alias.type div.big-circle {
+ background: url("abstract_type.svg") no-repeat center;
+}
+
#template {
margin: 0.9em 0.75em 0.75em;
padding-bottom: 0.5em;