[Cuis] Minor Direction Padding

Juan Vuletich juan at jvuletich.org
Mon Jul 6 08:33:23 CDT 2015


Hi Dan,

On 7/5/2015 8:35 PM, Dan Norton wrote:
> 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
>

I'd rather replace the keyword 'minorDirectionPadding:' by 
'minorDirectionPlacement:' to:
- Avoid ambiguity
- Avoid duplication

What do you all think?

Cheers,
Juan Vuletich




More information about the Cuis mailing list