Skip to content

implemented the fix for images not loading#495

Open
EseCurtis wants to merge 1 commit into
tsayen:masterfrom
EseCurtis:EseCurtis-patch-1
Open

implemented the fix for images not loading#495
EseCurtis wants to merge 1 commit into
tsayen:masterfrom
EseCurtis:EseCurtis-patch-1

Conversation

@EseCurtis
Copy link
Copy Markdown

initially when image element inside inline element . Due to the width or height of inline elements being calculated as zero.

now we use this to determine image true sizes

function width(node) {
return node.getBoundingClientRect().width || 0;
}
function height(node) {
return node.getBoundingClientRect().height || 0;
}

initially when image element inside inline element .
Due to the width or height of inline elements being calculated as zero.

now we use this to determine image true sizes 

 function width(node) {
           return node.getBoundingClientRect().width || 0;
}
function height(node) {
           return node.getBoundingClientRect().height || 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant