[Cuis] Minor Direction Padding

Dan Norton dnorton at mindspring.com
Sun Jul 5 18:35:22 CDT 2015


Greetings,

Four LayoutSpec class methods use "minorDirectionPadding:" as a keyword. The parameter 
can be a number or one of: #top, #left, #center, #right, or #bottom. AFAICT when the 
parameter is a number, it refers to the padding which will be applied in the minor direction. 
When it is a symbol, it effectively specifies that morphs will be located as the symbol name 
implies.

Attached are four convenience methods whose keyword emphasizes the visible (morph) 
instead of the invisible (padding). The "morphPlacement:" parameter can be  #top, #left, 
#center, #right, or #bottom. The methods are:

LayoutSpec class>>fixedWidth:fixedHeight:morphPlacement:
LayoutSpec class>>fixedWidth:proportionalHeight:morphPlacement:
LayoutSpec class>>proportionalWidth:fixedHeight:morphPlacement:
LayoutSpec class>>proportionalWidth:proportionalHeight:morphPlacement:

Are these worth having in the base system?

 - Dan

-------------- next part --------------
A non-text attachment was scrubbed...
Name: LayoutSpec class-convenience.zip
Type: application/zip
Size: 1988 bytes
Desc: not available
URL: <http://jvuletich.org/pipermail/cuis_jvuletich.org/attachments/20150705/2ebc6107/attachment-0003.zip>


More information about the Cuis mailing list