File: ie7/src/ie7-squish.js

Recommend this page to a friend!
  Classes of Joseluis Laso  >  jlaso Contador  >  ie7/src/ie7-squish.js  >  Download  
File: ie7/src/ie7-squish.js
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: jlaso Contador
Record user visits with MySQL database using PDO
Author: By
Last change:
Date: 7 years ago
Size: 1,302 bytes


Class file image Download
/* ---------------------------------------------------------------------

  Squish some IE bugs!

  Some of these bug fixes may have adverse effects so they are
  not included in the standard library. Add your own if you want.

--------------------------------------------------------------------- */

// NOTE: IE7.Layout.boxSizing is the same as the "Holly Hack"

if (IE7.loaded && IE7.appVersion < 7) {

  // "doubled margin" bug
  IE7.CSS.addFix(/(float\s*:\s*(left|right))/, "display:inline;$1");

  // "peekaboo" bug
  if (IE7.appVersion >= 6) IE7.CSS.addRecalc("float", "(left|right)", function(element) {
  	// "doubled margin" bug = "inline";

  // "unscrollable content" bug
  IE7.CSS.addRecalc("position", "absolute|fixed", function(element) {
  	if (element.offsetParent && element.offsetParent.currentStyle.position === "relative")

//# // get rid of Microsoft's pesky image toolbar
//# document.write('<meta http-equiv="imagetoolbar" content="no">');
For more information send a message to info at phpclasses dot org.