16 lines
400 B
JavaScript
16 lines
400 B
JavaScript
/**
|
|
* Created by hristo on 12/22/14.
|
|
*/
|
|
module.exports = {
|
|
/**
|
|
* Returns the available video width.
|
|
*/
|
|
getAvailableVideoWidth: function () {
|
|
var PanelToggler = require("../side_pannels/SidePanelToggler");
|
|
var rightPanelWidth
|
|
= PanelToggler.isVisible() ? PanelToggler.getPanelSize()[0] : 0;
|
|
|
|
return window.innerWidth - rightPanelWidth;
|
|
}
|
|
|
|
}; |