diff --git a/.gitattributes b/.gitattributes index 09cc36975d051d518102d697dbf18f408ffb6c53..09eac0c81768c96e2f5180b578adeede93d8a5be 100644 --- a/.gitattributes +++ b/.gitattributes @@ -9,6 +9,7 @@ dist/puce_rtl.gif -text dist/rien.gif -text dist/style_prive.html -text dist/win_png.html -text +dist/win_width.htc -text ecrire/action/autoriser.php -text ecrire/action/ical.php -text ecrire/action/iconifier.php -text diff --git a/dist/win_width.htc b/dist/win_width.htc new file mode 100644 index 0000000000000000000000000000000000000000..ed5a82973a63b170cec3c1884f914a87451a8de1 --- /dev/null +++ b/dist/win_width.htc @@ -0,0 +1,23 @@ +<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> +