diff --git a/demo/index.html b/demo/index.html index 1095cdaf..b863a23c 100644 --- a/demo/index.html +++ b/demo/index.html @@ -1,4 +1,4 @@ - + ReDoc diff --git a/lib/common/components/StickySidebar/sticky-sidebar.js b/lib/common/components/StickySidebar/sticky-sidebar.js index 76637c03..91a721b6 100644 --- a/lib/common/components/StickySidebar/sticky-sidebar.js +++ b/lib/common/components/StickySidebar/sticky-sidebar.js @@ -46,7 +46,7 @@ export default class StickySidebar { stick() { this.adapter.setStyle(this.element, 'position', 'fixed'); - this.adapter.setStyle(this.element, 'top', this.scrollYOffset()); + this.adapter.setStyle(this.element, 'top', this.scrollYOffset() + 'px'); } unstick() { diff --git a/lib/components/JsonSchema/json-schema.scss b/lib/components/JsonSchema/json-schema.scss index 2b99b9a2..da4fe420 100644 --- a/lib/components/JsonSchema/json-schema.scss +++ b/lib/components/JsonSchema/json-schema.scss @@ -38,10 +38,6 @@ $sub-schema-offset: ($bullet-size/2) + $bullet-margin; border-left: $line-border; white-space: nowrap; position: relative; - - > span { - vertical-align: middle; - } } .param-info {