JQuery: Add support for outerWidth and outerHeight used as setters

As described in the following blog post, outerWidth and outerHeight can
now be used to set the size of elements.

http://blog.jquery.com/2012/08/16/jquery-1-8-box-sizing-width-csswidth-and-outerwidth/
This commit is contained in:
malaporte
2014-02-25 16:12:08 +01:00
parent c5c56b0cf5
commit e1b395a7c5
2 changed files with 18 additions and 0 deletions
+4
View File
@@ -2178,6 +2178,8 @@ function test_outerHeight() {
$("p:last").text(
"outerHeight:" + p.outerHeight() +
" , outerHeight( true ):" + p.outerHeight(true));
p.outerHeight(123);
}
function test_outerWidth() {
@@ -2185,6 +2187,8 @@ function test_outerWidth() {
$("p:last").text(
"outerWidth:" + p.outerWidth() +
" , outerWidth( true ):" + p.outerWidth(true));
p.outerWidth(123);
}
function test_scrollLeft() {