Pman.Gnumeric.js
authorEdward <edward@roojs.com>
Thu, 11 Apr 2019 06:30:24 +0000 (14:30 +0800)
committerEdward <edward@roojs.com>
Thu, 11 Apr 2019 06:30:24 +0000 (14:30 +0800)
Pman.Gnumeric.js

index 5d13586..f8b1514 100644 (file)
@@ -1487,7 +1487,7 @@ Roo.extend(Pman.Gnumeric, Roo.util.Observable, {
                 }
                 
                 if(g.valueFormat == 'image') {
-                    out+=String.format('<td colspan="{0}" rowspan="{1}"  class="{2}"><div style="{3}"><img src="data:image/{4};base64, {5}"></div></td>', 
+                    out+=String.format('<td colspan="{0}" rowspan="{1}"  class="{2}"><div style="{3}"><img src="data:image/{4};base64, {5}" width="{6}" height="{7}"></div></td>', 
                         g.colspan, g.rowspan, g.cls.join(' '),
                         'overflow:hidden;' + 
                         'width:'+w+'px;' +
@@ -1495,7 +1495,7 @@ Roo.extend(Pman.Gnumeric, Roo.util.Observable, {
                         'text-overflow:ellipsis;' +
                         'white-space:nowrap;',
                          g.imageType,
-                         value
+                         value, g.width, g.height
 
                     );
                     c+=(g.colspan-1);