have to ask the device for fonts in computeLabelSize
authorpenk
Wed, 12 Mar 2003 18:08:20 +0100
changeset 2703 91b0c31b6d28
parent 2702 1c385145ab46
child 2704 9cd14ade263d
have to ask the device for fonts in computeLabelSize
Label.st
--- a/Label.st	Sun Mar 02 21:47:37 2003 +0100
+++ b/Label.st	Wed Mar 12 18:08:20 2003 +0100
@@ -1484,8 +1484,11 @@
             labelWidth := b width.
             labelHeight := b height.
         ] ifFalse:[
-            labelWidth := logo widthOn:self.
-            labelHeight := logo heightOn:self.
+"/ have to ask the device for fonts
+            labelWidth := logo widthOn:device.
+            labelHeight := logo heightOn:device.
+"/            labelWidth := logo widthOn:self.
+"/            labelHeight := logo heightOn:self.
         ].
 
 "/        b := logo bounds.
@@ -1838,5 +1841,5 @@
 !Label class methodsFor:'documentation'!
 
 version
-    ^ '$Header: /cvs/stx/stx/libwidg/Label.st,v 1.118 2003-02-24 11:17:15 cg Exp $'
+    ^ '$Header: /cvs/stx/stx/libwidg/Label.st,v 1.119 2003-03-12 17:08:20 penk Exp $'
 ! !