Hej Sebastian! Can you tell me why the nested vertical and horizontal box layouts do not adjust? I attach an image showing what happens to the widgets. I actually only have values for the message and its button pane., but it overlays att (0, 0) I can not have fixed size, because the text can be different as well as the icon etc. It must adjust itself.
Kent
------------
// Upper
var upperHBL = this._upperLayout = new QxHorizontalBoxLayout();
// Upper left
var messageI = this._icon = new QxImage(vIcon, 48, 48);
// Upper right
var rightVBL = this._rightLayout = new QxVerticalBoxLayout();
// Upper right top
var messageL = this._message = new QxLabel(vMessage);
rightVBL.add(messageL);
// Upper right bottom
if(QxUtil.isValidObject(vInputWidget)) {
this._inputWidget = vInputWidget;
rightVBL.add(vInputWidget);
};
upperHBL.add(messageI, rightVBL);
// Lower
var buttonsBP = this._buttons = new QxButtonPane();
var layoutVBL = this._layout = new QxVerticalBoxLayout();
layoutVBL.add(upperHBL, buttonsBP);
this.add(layoutVBL);
Layout_Problem.png
Description: PNG image
