Skip to content
Snippets Groups Projects
Commit b8059fbc authored by Bernhard Posselt's avatar Bernhard Posselt
Browse files

Merge pull request #8780 from owncloud/remove-deprecated-functions

Remove deprecated functions
parents 9fba8221 c8b32f43
Branches
No related tags found
No related merge requests found
...@@ -934,39 +934,6 @@ function object(o) { ...@@ -934,39 +934,6 @@ function object(o) {
return new F(); return new F();
} }
/**
* Fills height of window. (more precise than height: 100%;)
* @param selector
*/
function fillHeight(selector) {
if (selector.length === 0) {
return;
}
var height = parseFloat($(window).height())-selector.offset().top;
selector.css('height', height + 'px');
if(selector.outerHeight() > selector.height()){
selector.css('height', height-(selector.outerHeight()-selector.height()) + 'px');
}
console.warn("This function is deprecated! Use CSS instead");
}
/**
* Fills height and width of window. (more precise than height: 100%; or width: 100%;)
* @param selector
*/
function fillWindow(selector) {
if (selector.length === 0) {
return;
}
fillHeight(selector);
var width = parseFloat($(window).width())-selector.offset().left;
selector.css('width', width + 'px');
if(selector.outerWidth() > selector.width()){
selector.css('width', width-(selector.outerWidth()-selector.width()) + 'px');
}
console.warn("This function is deprecated! Use CSS instead");
}
/** /**
* Initializes core * Initializes core
*/ */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment