just so i can say i have added an opinion, i cannot say i really like
adding all of these extra attributes to view, since they are
accomplishable by means already present in the language. In my opinion,
the runtime really is rather complete and a lot of work is going into
overloading the runtime's basic classes. That said, these particular
attributes seem harmless -- since i may merely choose not to use them -
but it is indicative of a pattern of runtime development that is at odds
with my own.
Good work, thank you as always,
James.
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.