а

Problem resizing layout cell (V520 pro)


#1

Have a strange effect while resizing layout cells. Situation:

I have a layout (pattern 7I) loaded in the body. Cell “b” and “d” are set to 20px, cell “c” and “e” are set o 522px during init. Cell “f” is set to autosize (myhomelayout.setAutoSize(“a;f;g”, “b;c;d;e;f”):wink:

Cell “b” and “f” has no content. Cell “c” and “e” has accordion (or others) attached. Cell “d” has HTML content ( mymaster_d.attachHTMLString("<div id=‘preview’></div>"):wink:

If you open a accodion element and click the “preview” button this JS runs:

function open_preview (link) {
mymaster_c.setWidth(20);
mymaster_d.setMinWidth(1050);
mymaster_d.setWidth(1050);
mymaster_e.setWidth(20);

myhomelayout.setSizes();

var state = mymaster_c.showView(“hide_c”);
var state = mymaster_e.showView(“hide_e”);

main_layout.progressOn();

jQuery("#preview").load(link);
}

This works. In the “Preview” area there will be a close button. If clicked following JS runs:

function close_preview () {
mymaster_d.detachObject(true);
mymaster_d.attachHTMLString("

");

mymaster_c.setWidth(522);
mymaster_d.setMinWidth(20);
mymaster_d.setWidth(20);
mymaster_e.setWidth(522);

myhomelayout.setSizes();

var state = mymaster_c.showView(“def”);
var state = mymaster_e.showView(“def”);
}

Cell “d” are “e” are sucessfully resized but “c” stays to 20px.

See screenshotspicts.zip (25.1 KB)


#2

Please, try to add the setMinWidth() to the c cell:

mymaster_c.setMinWidth(522);
mymaster_c.setWidth(522);

#3

Works…

Great, tks a lot