Quantcast
Channel: SmartClient Forums
Viewing all articles
Browse latest Browse all 4756

BlurbItem overflow (does not work?)

$
0
0
Hi,

I'm using: v9.0p_2014-01-14/Pro Deployment (built 2014-01-14). And I running into some problems:

I have a field in the DB (mysql, TEXT type) containing some HTML code.
And I'm trying to use BlurbItem for displaying data from that field, but I cannot find any possible solutions for displaying the item with scroll bars.

Tried to set
Code:

setClipValue(false)
, but it does not work, because of DynamicForm. The form will have overflow:hidden CSS attribute even if I set:
Code:

form.setOverflow(Overflow.AUTO);
So the BlurbItem will inherit the same.

P.S. I'm trying to display it in the popup window with such config:
Code:

VLayout composite = new VLayout();
setIsModal(true);
setShowModalMask(true);
centerInPage();
addItem(composite);

Sources for DynamicForm and BlurbItem with the problem:
Code:

private void createView(VLayout composite) {
        DynamicForm form = new DynamicForm();
        form.setOverflow(Overflow.SCROLL);
        form.setWidth100();
        form.setHeight100();
        BlurbItem item = new BlurbItem();
        item.setDefaultValue(HTML_CODE);
        item.setShouldSaveValue(false);
        item.setWidth(580);
        item.setHeight(400);
        item.setShowTitle(true);
        item.setWrap(true);
        item.setCanSelectText(true);
        item.setClipValue(true);
        item.setCanFocus(true);
        item.setCanEdit(true);
        form.setItems(item);
        composite.addMember(form);
 }

And browser: Google Chrome, version: 35.0.1916.153 m

Please could you let me know how to fix this, or could you provide better solution (maybe using CanvasItem instead) for me?

Thanks,
S.

Viewing all articles
Browse latest Browse all 4756

Trending Articles