Look at style height in addition to the height attribute for vertical
marquees. Bug 262708, r=doron, sr=jst git-svn-id: svn://10.0.0.236/trunk@163574 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -204,7 +204,12 @@
|
||||
if ((this.directionField == "up") || (this.directionField == "down"))
|
||||
{
|
||||
// "", 0 and empty height should default to 200px
|
||||
var height = (this.getAttribute("height") != "0" && this.getAttribute("height")) || "200px";
|
||||
var height =
|
||||
(this.getAttribute("height") != "0" &&
|
||||
this.getAttribute("height")) ||
|
||||
(document.defaultView.getComputedStyle(this,"").height != "0px" &&
|
||||
document.defaultView.getComputedStyle(this,"").height) ||
|
||||
"200px";
|
||||
|
||||
// support % heights
|
||||
if (/%/.test(height)) {
|
||||
|
||||
@@ -204,7 +204,12 @@
|
||||
if ((this.directionField == "up") || (this.directionField == "down"))
|
||||
{
|
||||
// "", 0 and empty height should default to 200px
|
||||
var height = (this.getAttribute("height") != "0" && this.getAttribute("height")) || "200px";
|
||||
var height =
|
||||
(this.getAttribute("height") != "0" &&
|
||||
this.getAttribute("height")) ||
|
||||
(document.defaultView.getComputedStyle(this,"").height != "0px" &&
|
||||
document.defaultView.getComputedStyle(this,"").height) ||
|
||||
"200px";
|
||||
|
||||
// support % heights
|
||||
if (/%/.test(height)) {
|
||||
|
||||
Reference in New Issue
Block a user