vendredi 10 avril 2015

Panel doesn't inherit border defaults when added programmatically

When using Neptune or Crisp, there's a bug where if you programmatically insert a Panel inside another Panel that has a defaults configuration for border set to false, the inserted Panel will ignore the border policy and draw a border around its body.



I've created a fiddle to illustrate te problem: http://ift.tt/1IzRob4



When items are declaratively added to #lowerPanel, the border policy is respected. When adding a Panel dynamically, it is not (and so the panel has a border).

I've found that when I add a Container instead of a Panel, the inserted component does follow the no-border configuration, which in my opinion suggests a bug somewhere inside Panel.

In all the test cases the padding configuration is respected, only the border is ignored.



This bug does not appear when using the classic theme.





Panel doesn't inherit border defaults when added programmatically

Aucun commentaire:

Enregistrer un commentaire