diff --git a/modules/toolbar/toolbar.js b/modules/toolbar/toolbar.js
index 5b61634..4d50f2b 100644
--- a/modules/toolbar/toolbar.js
+++ b/modules/toolbar/toolbar.js
@@ -95,9 +95,9 @@ Drupal.toolbar.toggle = function() {
 
 Drupal.toolbar.height = function() {
   var height = $('#toolbar').outerHeight();
-  // In IE, Shadow filter adds some extra height, so we need to remove it from
+  // In IE < 9, Shadow filter adds some extra height, so we need to remove it from
   // the returned height.
-  if ($('#toolbar').css('filter').match(/DXImageTransform\.Microsoft\.Shadow/)) {
+  if ($('#toolbar').css('filter').match(/DXImageTransform\.Microsoft\.Shadow/) && typeof $('#toolbar').css('ms-filter') == 'undefined') {
     height -= $('#toolbar').get(0).filters.item("DXImageTransform.Microsoft.Shadow").strength;
   }
   return height;
