[Cuis-dev] LayoutMorph separation
ken.dickey at whidbey.com
ken.dickey at whidbey.com
Tue Aug 27 12:14:51 PDT 2024
On 2024-08-27 08:32, Bernhard Pieber via Cuis-dev wrote:
> Hi Ken,
>
> I agree that the margin functionality could be introduced in a separate
> step.
>
> Here is an example where a margin is useful, though:
>
> The container has a gap of 30px and a padding of 0px. Only red has a
> margin of 8px in addition.
>
> You can play around with the values here:
> https://codepen.io/bpieber/pen/PoraLjm
>
> Note that only four morphs are needed, neither spacers nor wrappers.
>
> Maybe margin could be emulated by a wrapper with transparent border
> color.
Bernhard,
Thanks for the example. I am looking for something both explainable and
easy to calculate. What is the simplest thing that will work?
I changed the green margin to 30px, result attached.
I would not have predicted this result and don't see how it would help
me.
$0.02,
-KenD
-------------- next part --------------
A non-text attachment was scrubbed...
Name: PastedGraphic-1.png
Type: image/png
Size: 11467 bytes
Desc: not available
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20240827/dc8eddbf/attachment-0003.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Screenshot_2024-08-27_12-09-23.png
Type: image/png
Size: 6109 bytes
Desc: not available
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20240827/dc8eddbf/attachment-0004.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: PastedGraphic-1.png
Type: image/png
Size: 11467 bytes
Desc: not available
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20240827/dc8eddbf/attachment-0005.png>
More information about the Cuis-dev
mailing list