Pman.Gnumeric.js
authorAlan Knowles <alan@akbkhome.com>
Wed, 17 Nov 2010 06:39:39 +0000 (14:39 +0800)
committerAlan Knowles <alan@akbkhome.com>
Wed, 17 Nov 2010 06:39:39 +0000 (14:39 +0800)
Pman.Gnumeric.js

index da4ff41..0cfa2c5 100644 (file)
@@ -988,7 +988,9 @@ Roo.extend(Pman.Gnumeric, Roo.util.Observable, {
             fmap[k](fent,val);
         }
         var font = el.getStyle('font-family') || 'Sans';
-        
+        if (font.split(',').length > 1) {
+            font = font.split(',')[1].replace(/\s+/, '');
+        }
         
         
         /// -- now create elements..