[Laszlo-dev] Feature proposal: Add CSS2 box model support (padding, margins, borders) to views

Max Carlson max at openlaszlo.org
Thu Dec 3 12:01:42 PST 2009


Here's the link to the improvement: 
http://jira.openlaszlo.org/jira/browse/LPP-8552

Max Carlson wrote:
> See here for more details on how box model works:
> http://www.w3.org/TR/CSS2/box.html#box-dimensions
> 
> I propose adding four attributes to view, to support CSS2 box model:
> 
> padding: Specifies the number of pixels used for padding around the view
> margin: Specifies the number of pixels used for margins inside th view.
> borderwidth: Specifies the width of the border, in pixels.
> bordercolor: Specifies the color of the border, as a CSS color value.
> 
> The risk is, padding, border and margin may be used in existing 
> applications.  I already found a case in lz/tabs.lzx that used 
> 'padding'.  In most cases, these attributes can simply be renamed.
> 
> Please send your thoughts!  I'd like to get this finalized in time for 
> the 4.7 release.
> 

-- 
Regards,
Max Carlson
OpenLaszlo.org


More information about the Laszlo-dev mailing list