j4ts / j4ts-awt-swing

A JSweet implementation for AWT/Swing
16 stars 3 forks source link

Container + BorderLayout #5

Closed schaumb closed 6 years ago

schaumb commented 6 years ago

in Java, Borderlayout handles only 1 element per constraint (NORTH /SOUTH/EAST/WEST/CENTER) this means we need to remove sometimes the elements.

"0%" is not working sometimes, this is why I rewrite to "0px". In Java Gui there are no borders and no paddings, so i add some styling

I copied from Oracle code the Container's layout handling. This means on add, need to set parent, and call layoutmanager add (which sets HTMLElement parents too) And on delete the same as expected