windowContainers.js
Summary
No overview generated for 'windowContainers.js'
var WindowContainerBase = function()
{
this.vertical_delta = 0;
this.getCssText = function()
{
return 'height:' + this.height + 'px;';
}
this.setDimensions = function(force_redraw)
{
var dim = '', i = 0;
if(!this.default_height)
{
this.setCSSProperties();
this.vertical_delta =
defaults.window_header_offsetHeight +
(this.cell.toolbar && this.cell.toolbar.offsetHeight || 0 ) +
defaults.window_statusbar_offsetHeight +
this.vertical_border_padding;
}
dim = this.cell.height - this.vertical_delta;
if( dim != this.height)
{
this.is_dirty = true;
this.height = dim;
}
this.update(force_redraw)
views[this.view_id] && views[this.view_id].onresize();
}
this.setup = function(view_id)
{
var view = views[this.view_id = view_id];
views[this.view_id].addContainerId(this.type + '-to-' + this.cell.id);
this.setDimensions();
var container = document.getElementById(this.type + '-to-' + this.cell.id) || this.update(true);
if( view )
{
container.className = view.container_class || '';
view.update();
}
}
this.onclose = function()
{
views[this.view_id].removeContainerId(this.type + '-to-' + this.cell.id);
}
this.init = function(cell)
{
this.cell = cell;
this.parent_container_id = cell.id;
this.initBase();
}
}
var WindowContainer = function(cell)
{
this.init(cell);
}
WindowContainerBase.prototype = new ContainerBase();
WindowContainer.prototype = new WindowContainerBase();
Documentation generated by
JSDoc on Thu Oct 30 18:01:10 2008