class Layouts {

    public static int heightOrDefault(PanelDefinition def) {
        Integer height = toInteger(def.getHeightAsInt());
        return height == null ? DEFAULT_CHILD_SIZE : height;
    }

}