Cleanup and minor tweaks for apps with a sidebar
Like Attract or Flamenco
This commit is contained in:
@@ -32,7 +32,7 @@ var DocumentTitleAPI = {
|
||||
};
|
||||
|
||||
|
||||
/* Status Bar */
|
||||
/* Status Bar * DEPRECATED * USE TOASTR INSTEAD */
|
||||
function statusBarClear(delay_class, delay_html){
|
||||
var statusBar = $("#status-bar");
|
||||
|
||||
@@ -54,6 +54,7 @@ function statusBarClear(delay_class, delay_html){
|
||||
}
|
||||
}
|
||||
|
||||
/* Status Bar * DEPRECATED - USE TOASTR INSTEAD * */
|
||||
function statusBarSet(classes, html, icon_name, time){
|
||||
/* Utility to notify the user by temporarily flashing text on the project header
|
||||
Usage:
|
||||
|
@@ -66,7 +66,9 @@ function containerResizeY(window_height){
|
||||
|
||||
var project_container = document.getElementById('project-container');
|
||||
var container_offset = project_container.offsetTop;
|
||||
var nav_header_height = $('#project_nav-header').height();
|
||||
// TODO (pablo) - see if it's used at all
|
||||
// var nav_header_height = $('#project_context-header').height();
|
||||
var nav_header_height = 40;
|
||||
var container_height = window_height - container_offset.top;
|
||||
var container_height_wheader = window_height - container_offset.top - nav_header_height;
|
||||
var window_height_minus_nav = window_height - nav_header_height - 1; // 1 is border width
|
||||
|
Reference in New Issue
Block a user