[#31352] JLayouts improvements for extension developers (Fix #1419)