Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Disabling layout resizing

    Is it possible to have layout with setShowResizeBar set on true and disabling resizing of this layuot? I need resizebar to allow only collapse this panel.

    And second question. How to handle event collapsing layuot

    Example:
    Code:
    public class LeftPanel extends VStack {
    public LeftPanel() {
    		super(10);
    		setHeight100();
    		setAutoWidth();
    		setShowResizeBar(true);
    		setResizeBarClass("com.smartgwt.client.widgets.Snapbar");
    		setResizeBarSize(5);
    	}
    }
    I'm using LeftPanel with TabSet in MainPanel:
    Code:
       ...
       mainPanel = new HLayout(10);		
       leftPanel = new LeftPanel();
       mainPanel.addMember(leftPanel);
       mainPanel.addMember(createMainTabSet());
       ....
    I want to allow to collapse my left panel but I want also that user couldn't change the size of this panel. Collapsing works fine, but it is possible also extend or reduce size of panel, and it should be not allowed.
    It is possible to implement such functionality using ResizeBar?

    Thanks in advance

    Martin
Working...
X