Pman.Gnumeric.js
authorAlan Knowles <alan@roojs.com>
Thu, 25 Jul 2019 07:48:46 +0000 (15:48 +0800)
committerAlan Knowles <alan@roojs.com>
Thu, 25 Jul 2019 07:48:46 +0000 (15:48 +0800)
Pman.Gnumeric.js

index 92cb876..d9060f9 100644 (file)
@@ -1164,8 +1164,14 @@ Roo.extend(Pman.Gnumeric, Roo.util.Observable, {
         var ww = 0.01; // offset a bit...
         var hh = 0.01; //
         
+        var rowHeight = typeof(this.rowInfoDom[row]) == 'undefined' ? 100 : 
+               this.rowInfoDom[row].getAttribute('Unit')*1;
+       
+       
         var ww2 = 1 - ((colwidth - width) / this.colInfo[endcol]);
-        var hh2 = 0.99;
+        var hh2 = 1 - ((rowHeight - height) /    rowHeight);
+        
+        var offset_str = ww + ' '  + hh + ' ' + ww2 + ' '+hh2;
         
         var offset_str = ww + ' '  + hh + ' ' + ww2 + ' '+hh2;
         
@@ -1231,7 +1237,14 @@ Roo.extend(Pman.Gnumeric, Roo.util.Observable, {
      * 
      */
     
-    writeImage : function (row, col, data, width, height, type) 
+    var rowHeight = typeof(this.rowInfoDom[row]) == 'undefined' ? 100 : 
+               this.rowInfoDom[row].getAttribute('Unit')*1;
+       
+       
+        var ww2 = 1 - ((colwidth - width) / this.colInfo[endcol]);
+        var hh2 = 1 - ((rowHeight - height) /    rowHeight);
+        
+        var offset_str = ww + ' '  + hh + ' ' + ww2 + ' '+hh2; : function (row, col, data, width, height, type) 
     {
         
         if (!data) {