Skip to content

Commit

Permalink
Merge pull request jspreadsheet#581 from peterwake/master
Browse files Browse the repository at this point in the history
Add imageOptions so we can pass these to jSuite
  • Loading branch information
pphod authored Sep 11, 2019
2 parents 0946159 + 7ad982b commit 1c61b7e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion dist/jexcel.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,8 @@ var jexcel = (function(el, options) {
allowComments:false,
// Global wrap
wordWrap:false,
// Image options
imageOptions: null,
// CSV source
csv:null,
// Filename
Expand Down Expand Up @@ -1400,7 +1402,7 @@ var jexcel = (function(el, options) {
div.appendChild(img);
}
editor.appendChild(div);
jSuites.image(div);
jSuites.image(div, obj.options.imageOptions);
const rect = cell.getBoundingClientRect();
const rectContent = div.getBoundingClientRect();
if (window.innerHeight < rect.bottom + rectContent.height) {
Expand Down

0 comments on commit 1c61b7e

Please sign in to comment.