projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
2f133d3
)
Pman.Gnumeric.js
author
Edward
<edward@roojs.com>
Mon, 15 Apr 2019 03:37:57 +0000
(11:37 +0800)
committer
Edward
<edward@roojs.com>
Mon, 15 Apr 2019 03:37:57 +0000
(11:37 +0800)
Pman.Gnumeric.js
patch
|
blob
|
history
diff --git
a/Pman.Gnumeric.js
b/Pman.Gnumeric.js
index
f81b68e
..
9f5a7f6
100644
(file)
--- a/
Pman.Gnumeric.js
+++ b/
Pman.Gnumeric.js
@@
-1154,6
+1154,8
@@
Roo.extend(Pman.Gnumeric, Roo.util.Observable, {
writeImage : function (row, col, data, width, height, type)
{
writeImage : function (row, col, data, width, height, type)
{
+ console.log([row, col, width, height, type]);
+
if (!data) {
throw "write Image called with missing data";
}
if (!data) {
throw "write Image called with missing data";
}
@@
-1188,32
+1190,32
@@
Roo.extend(Pman.Gnumeric, Roo.util.Observable, {
// step 1 - work out how many columns it will span..
// lets hope the spreadsheet is big enought..
// step 1 - work out how many columns it will span..
// lets hope the spreadsheet is big enought..
-
//
var colwidth = 0;
-
//
var endcol=col;
-
//
for ( endcol=col;endcol <100; endcol++) {
-
//
if (!this.colInfo[endcol]) {
-
//
this.colInfo[endcol] = 100; // eak fudge
-
//
}
-
//
colwidth += this.colInfo[endcol];
-
//
if (colwidth > width) {
-
//
break;
-
//
}
-
//
}
+ var colwidth = 0;
+ var endcol=col;
+ for ( endcol=col;endcol <100; endcol++) {
+ if (!this.colInfo[endcol]) {
+ this.colInfo[endcol] = 100; // eak fudge
+ }
+ colwidth += this.colInfo[endcol];
+ if (colwidth > width) {
+ break;
+ }
+ }
soi.setAttribute('ObjectBound',
//gnumeric_colRowToName(row,col) + ':' + gnumeric_colRowToName(row+1,col+1));
soi.setAttribute('ObjectBound',
//gnumeric_colRowToName(row,col) + ':' + gnumeric_colRowToName(row+1,col+1));
- this.RCtoCell(row,col) + ':' + this.RCtoCell(row,col));
+ this.RCtoCell(row,col) + ':' + this.RCtoCell(row,
end
col));
-
//
var ww = 0.01; // offset a bit...
-
//
var hh = 0.01; //
-//
-
//
var ww2 = 1 - ((colwidth - width) / this.colInfo[endcol]);
-
//
var hh2 = 0.99;
-//
-
//
var offset_str = ww + ' ' + hh + ' ' + ww2 + ' '+hh2;
+ var ww = 0.01; // offset a bit...
+ var hh = 0.01; //
+
+ var ww2 = 1 - ((colwidth - width) / this.colInfo[endcol]);
+ var hh2 = 0.99;
+
+ var offset_str = ww + ' ' + hh + ' ' + ww2 + ' '+hh2;
//alert(offset_str);
//alert(offset_str);
- soi.setAttribute('ObjectOffset',
'0 0 0 0'
);
+ soi.setAttribute('ObjectOffset',
offset_str
);
soi.setAttribute('ObjectAnchorType','16 16 16 16');
soi.setAttribute('Direction','17');
soi.setAttribute('crop-top','0.000000');
soi.setAttribute('ObjectAnchorType','16 16 16 16');
soi.setAttribute('Direction','17');
soi.setAttribute('crop-top','0.000000');