jQuery: Put back in what I accidentally removed

This commit is contained in:
John Reilly
2014-03-14 11:02:11 +00:00
parent cfde90d4e7
commit 002e1bf169
2 changed files with 69 additions and 0 deletions
+13
View File
@@ -2224,11 +2224,18 @@ function test_index() {
function test_innerHeight() {
var p = $("p:first");
$("p:last").text("innerHeight:" + p.innerHeight());
p.innerHeight(123);
p.innerHeight('123px');
}
function test_innerWidth() {
var p = $("p:first");
$("p:last").text("innerWidth:" + p.innerWidth());
p.innerWidth(123);
p.innerWidth('123px');
}
function test_outerHeight() {
@@ -2236,6 +2243,9 @@ function test_outerHeight() {
$("p:last").text(
"outerHeight:" + p.outerHeight() +
" , outerHeight( true ):" + p.outerHeight(true));
p.outerHeight(123);
p.outerHeight('123px');
}
function test_outerWidth() {
@@ -2243,6 +2253,9 @@ function test_outerWidth() {
$("p:last").text(
"outerWidth:" + p.outerWidth() +
" , outerWidth( true ):" + p.outerWidth(true));
p.outerWidth(123);
p.outerWidth('123px');
}
function test_scrollLeft() {
+56
View File
@@ -1418,11 +1418,39 @@ interface JQuery {
*/
innerHeight(): number;
/**
* Sets the inner height on elements in the set of matched elements, including padding but not border.
*
* @param value An integer representing the number of pixels, or an integer along with an optional unit of measure appended (as a string).
*/
innerHeight(height: number): JQuery;
/**
* Sets the inner height on elements in the set of matched elements, including padding but not border.
*
* @param value An integer representing the number of pixels, or an integer along with an optional unit of measure appended (as a string).
*/
innerHeight(height: string): JQuery;
/**
* Get the current computed width for the first element in the set of matched elements, including padding but not border.
*/
innerWidth(): number;
/**
* Sets the inner width on elements in the set of matched elements, including padding but not border.
*
* @param value An integer representing the number of pixels, or an integer along with an optional unit of measure appended (as a string).
*/
innerWidth(width: number): JQuery;
/**
* Sets the inner width on elements in the set of matched elements, including padding but not border.
*
* @param value An integer representing the number of pixels, or an integer along with an optional unit of measure appended (as a string).
*/
innerWidth(width: string): JQuery;
/**
* Get the current coordinates of the first element in the set of matched elements, relative to the document.
*/
@@ -1447,6 +1475,20 @@ interface JQuery {
*/
outerHeight(includeMargin?: boolean): number;
/**
* Sets the outer height on elements in the set of matched elements, including padding and border.
*
* @param value An integer representing the number of pixels, or an integer along with an optional unit of measure appended (as a string).
*/
outerHeight(height: number): JQuery;
/**
* Sets the outer height on elements in the set of matched elements, including padding and border.
*
* @param value An integer representing the number of pixels, or an integer along with an optional unit of measure appended (as a string).
*/
outerHeight(height: string): JQuery;
/**
* Get the current computed width for the first element in the set of matched elements, including padding and border.
*
@@ -1454,6 +1496,20 @@ interface JQuery {
*/
outerWidth(includeMargin?: boolean): number;
/**
* Sets the outer width on elements in the set of matched elements, including padding and border.
*
* @param value An integer representing the number of pixels, or an integer along with an optional unit of measure appended (as a string).
*/
outerWidth(width: number): JQuery;
/**
* Sets the outer width on elements in the set of matched elements, including padding and border.
*
* @param value An integer representing the number of pixels, or an integer along with an optional unit of measure appended (as a string).
*/
outerWidth(width: string): JQuery;
/**
* Get the current coordinates of the first element in the set of matched elements, relative to the offset parent.
*/