GroupBox.showAsPanel has no margin

Hi,

i recently used the flag “showAsPanel=true” from the GroupBox. It turns out that although this works very good in general, one thing is missing: As a groupBox element can’t have a margin, putting content like a fieldGroup will glue on the edges of the box (see attached picture and example project).

I could get it work with another hbox inside of the groupBox, but this is not really clean in my opinion.

Is this just the way it works because groupBox is not the same as a container element which has this attribute, or can that be changed?

Bye
Mario

groupbox-margin

cuba-problem-groupbox-spacing.zip (28.8K)

Hi Mario,

thank you for reporting this cosmetics issue, we will include fixes for this in the next bug fix release.

:ticket: See the following issue in our bug tracker:

https://youtrack.cuba-platform.com/issue/PL-8303