LayoutFrame.st
changeset 2839 8fd092da727e
parent 2765 827160ff9feb
child 3018 e7f336370c9f
--- a/LayoutFrame.st	Fri Apr 23 15:10:08 2010 +0200
+++ b/LayoutFrame.st	Mon Apr 26 15:08:22 2010 +0200
@@ -130,6 +130,18 @@
 
 !LayoutFrame class methodsFor:'instance creation'!
 
+bottomInset:pixels
+    "create a new layoutFrame which insets the child at the bottom by some pixels"
+
+    ^ self
+        leftFraction:0 offset:0
+        rightFraction:1 offset:0
+        topFraction:0 offset:0 
+        bottomFraction:1 offset:pixels negated
+
+    "Created: / 26-04-2010 / 15:07:50 / cg"
+!
+
 fractions:fractionRectangle offsets:offsetRectangle
     "create a new layoutFrame"
 
@@ -532,9 +544,9 @@
 !LayoutFrame class methodsFor:'documentation'!
 
 version
-    ^ '$Header: /cvs/stx/stx/libview2/LayoutFrame.st,v 1.36 2009-10-19 09:28:12 cg Exp $'
+    ^ '$Header: /cvs/stx/stx/libview2/LayoutFrame.st,v 1.37 2010-04-26 13:08:22 cg Exp $'
 !
 
 version_CVS
-    ^ '$Header: /cvs/stx/stx/libview2/LayoutFrame.st,v 1.36 2009-10-19 09:28:12 cg Exp $'
+    ^ '$Header: /cvs/stx/stx/libview2/LayoutFrame.st,v 1.37 2010-04-26 13:08:22 cg Exp $'
 ! !