IPB

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Fix for sl_sm_scroll
luk4ward
post Nov 15 2009, 09:13 PM
Post #1


Group Icon Sergeant

Group: Members

Joined: 6-August 06
Member No.: 31293



Hi,
im getting error in firebug/firefox while opening players' list. Its tellling me obj.style.setAttribute is not a function. I think this line:

CODE
obj.style.setAttribute("height", obj.tag+"px", false);


should look like:

CODE
obj.style.setAttribute("height", obj.tag+"px");


Better version:

CODE
var styleattribute = obj.getAttribute('style');
if (typeof styleattribute == 'string') { // what Firefox returns
   obj.style.setAttribute("height", obj.tag+"px");
} else if (typeof styleattribute == 'object') { // what IE returns
    obj.style.height = obj.tag+"px";
}


cheers


--------------------
Go to the top of the page
 
+Quote Post
Krauersaut
post Nov 18 2009, 05:29 PM
Post #2


Group Icon General of the Army

Group: Management

Joined: 2-January 06
From: Europe
Member No.: 20317



Thank you for your feedback. The coding team is currently reworking some parts of the backend code. They might consider your fix later on.


--------------------


"Ich weiß nicht, welche Waffen im nächsten Krieg zur Anwendung kommen,
wohl aber, welche im übernächsten: Pfeil und Bogen."
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 27th April 2024 - 12:44 PM