mirror of
https://github.com/YunoHost-Apps/spip_ynh.git
synced 2024-09-03 20:25:59 +02:00
23 lines
493 B
Text
23 lines
493 B
Text
<public:component>
|
|
<public:property name="retrait">
|
|
<script language="JScript">
|
|
|
|
function fixWidth(){
|
|
if (element.className == "spip_cadre") retrait = 24;
|
|
else retrait = 16;
|
|
|
|
if (element.offsetWidth) {
|
|
style.width = element.offsetWidth - retrait;
|
|
} else {
|
|
style.width = "90%";
|
|
//alert (element.parentElement.tagName);
|
|
}
|
|
}
|
|
|
|
var supported = /MSIE (5\.5)|[6789]/.test(navigator.userAgent) && navigator.platform == "Win32";
|
|
if (supported) fixWidth();
|
|
|
|
|
|
</script>
|
|
</public:component>
|
|
|