Commit 5519198a authored by haemmer's avatar haemmer
Browse files

Implemented quirks mode to detect right height of image

parent 6799d1de
......@@ -164,8 +164,8 @@ function getTextElement(sourceElement, imgElement) {
var newID = sourceElement.attr('id');
var newTextElement = $('<input type="text" />');
// For some reason we have to substract 2px from the height when using <!DOCTYPE HTML>
var quirksModeOffset = 0;
// We have to substract 2px from the height if page is not rendered in standard mode
var quirksModeOffset = (document.compatMode ==='CSS1Compat') ? 0 : -2 ;
var controlWidth = Math.max(sourceElement.outerWidth() - imgElement.outerWidth() - quirksModeOffset,40);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment