mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-26 14:22:01 +00:00
Look at style height in addition to the height attribute for vertical
marquees. Bug 262708, r=doron, sr=jst
This commit is contained in:
parent
24c89150ae
commit
0341aafe1e
@ -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)) {
|
||||
|
Loading…
Reference in New Issue
Block a user