Themes: Fix javascript regression that linter found.
Tests were failing from line length optimizations and double quotes. Fixes #37536 git-svn-id: https://develop.svn.wordpress.org/trunk@46310 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
8f43c53a99
commit
fd0b230dcd
@ -100,16 +100,13 @@
|
|||||||
sidebarHeight = $sidebar.height(),
|
sidebarHeight = $sidebar.height(),
|
||||||
bodyHeight = $body.height();
|
bodyHeight = $body.height();
|
||||||
|
|
||||||
if( 955 < $window.width()
|
if( 955 < $window.width() && bodyHeight > sidebarHeight && ( windowPos + windowHeight ) >= sidebarHeight ) {
|
||||||
&& bodyHeight > sidebarHeight
|
|
||||||
&& ( windowPos + windowHeight ) >= sidebarHeight ) {
|
|
||||||
|
|
||||||
$sidebar.css({
|
$sidebar.css({
|
||||||
position: "fixed",
|
position: 'fixed',
|
||||||
bottom: sidebarHeight > windowHeight ? 0 : 'auto'
|
bottom: sidebarHeight > windowHeight ? 0 : 'auto'
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
$sidebar.css('position', 'relative')
|
$sidebar.css('position', 'relative');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user