mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-06-16 15:20:20 +02:00
Fix DS settings sidebar moving incorrectly
This commit is contained in:
parent
2944d76ef0
commit
390dae3918
4 changed files with 21 additions and 4 deletions
|
@ -89,11 +89,13 @@
|
||||||
{
|
{
|
||||||
"name": "description",
|
"name": "description",
|
||||||
"label": "Description",
|
"label": "Description",
|
||||||
|
"advanced": true,
|
||||||
"help": "A description of your domain (256 character limit)."
|
"help": "A description of your domain (256 character limit)."
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "maturity",
|
"name": "maturity",
|
||||||
"label": "Maturity",
|
"label": "Maturity",
|
||||||
|
"advanced": true,
|
||||||
"help": "A maturity rating, available as a guideline for content on your domain.",
|
"help": "A maturity rating, available as a guideline for content on your domain.",
|
||||||
"default": "unrated",
|
"default": "unrated",
|
||||||
"type": "select",
|
"type": "select",
|
||||||
|
@ -123,6 +125,7 @@
|
||||||
{
|
{
|
||||||
"name": "hosts",
|
"name": "hosts",
|
||||||
"label": "Hosts",
|
"label": "Hosts",
|
||||||
|
"advanced": true,
|
||||||
"type": "table",
|
"type": "table",
|
||||||
"can_add_new_rows": true,
|
"can_add_new_rows": true,
|
||||||
"help": "Usernames of hosts who can reliably show your domain to new visitors.",
|
"help": "Usernames of hosts who can reliably show your domain to new visitors.",
|
||||||
|
@ -138,6 +141,7 @@
|
||||||
{
|
{
|
||||||
"name": "tags",
|
"name": "tags",
|
||||||
"label": "Tags",
|
"label": "Tags",
|
||||||
|
"advanced": true,
|
||||||
"type": "table",
|
"type": "table",
|
||||||
"can_add_new_rows": true,
|
"can_add_new_rows": true,
|
||||||
"help": "Common categories under which your domain falls.",
|
"help": "Common categories under which your domain falls.",
|
||||||
|
|
|
@ -81,8 +81,10 @@ span.port {
|
||||||
}
|
}
|
||||||
|
|
||||||
#setup-sidebar.affix {
|
#setup-sidebar.affix {
|
||||||
position: fixed;
|
/* This overrides a case where going to the bottom of the page,
|
||||||
top: 70px;
|
* then scrolling up, causes `position: relative` to be added to the style
|
||||||
|
*/
|
||||||
|
position: fixed !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
#setup-sidebar button {
|
#setup-sidebar button {
|
||||||
|
|
|
@ -9,7 +9,7 @@
|
||||||
|
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-md-3 col-sm-3" id="setup-sidebar-col">
|
<div class="col-md-3 col-sm-3" id="setup-sidebar-col">
|
||||||
<div id="setup-sidebar" class="hidden-xs" data-spy="affix" data-offset-top="1" data-clampedwidth="#setup-sidebar-col">
|
<div id="setup-sidebar" data-clampedwidth="#setup-sidebar-col">
|
||||||
<script id="list-group-template" type="text/template">
|
<script id="list-group-template" type="text/template">
|
||||||
<% _.each(descriptions, function(group){ %>
|
<% _.each(descriptions, function(group){ %>
|
||||||
<% panelID = group.name ? group.name : group.html_id %>
|
<% panelID = group.name ? group.name : group.html_id %>
|
||||||
|
|
|
@ -297,7 +297,14 @@ $(document).ready(function(){
|
||||||
var sidebarTemplate = $('#list-group-template').html()
|
var sidebarTemplate = $('#list-group-template').html()
|
||||||
Settings.sidebarTemplate = _.template(sidebarTemplate)
|
Settings.sidebarTemplate = _.template(sidebarTemplate)
|
||||||
|
|
||||||
// $('body').scrollspy({ target: '#setup-sidebar'})
|
var navbarHeight = $('.navbar').outerHeight(true);
|
||||||
|
|
||||||
|
$('#setup-sidebar').affix({
|
||||||
|
offset: {
|
||||||
|
top: 1,
|
||||||
|
bottom: navbarHeight
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
reloadSettings(function(success){
|
reloadSettings(function(success){
|
||||||
if (success) {
|
if (success) {
|
||||||
|
@ -309,6 +316,10 @@ $(document).ready(function(){
|
||||||
text: Strings.LOADING_SETTINGS_ERROR
|
text: Strings.LOADING_SETTINGS_ERROR
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
$('body').scrollspy({
|
||||||
|
target: '#setup-sidebar',
|
||||||
|
offset: navbarHeight
|
||||||
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue