issue #5183, add layout parameter type to widget for convenient access