PFE 'west' layoutPane is resizable when resizable=false

Community Driven Extensions Project
Post Reply
smithh032772
Posts: 6144
Joined: 10 Sep 2011, 21:10

05 Nov 2012, 21:40

This seems to be an issue that needs to be reported in issue tracker. I have the following code:

Code: Select all

        layoutOptions = new LayoutOptions();

        // options for all panes
        LayoutOptions panes = new LayoutOptions();
        panes.addOption("slidable", false);
        panes.addOption("spacing", 6);
        panes.addOption("resizeWhileDragging", false);
        layoutOptions.setPanesOptions(panes);
        
        LayoutOptions north = new LayoutOptions();
        north.addOption("resizable", false);
        north.addOption("size", 100);
        layoutOptions.setNorthOptions(north);

        // options for center pane
        LayoutOptions center = new LayoutOptions();
        if (pageWithLayoutPane) {
            center.addOption("closable", false);
            center.addOption("resizable", false);
            // if container has min-width/height, then enable scrollbar(s)
            center.addOption("minWidth", 200);
            center.addOption("minHeight", pageWithLayoutPaneNorthSize);
        }
        else {
            
        }
        layoutOptions.setCenterOptions(center);
        
        if (pageWithLayoutPane) {
            // options for nested center layout
            LayoutOptions childCenterOptions = new LayoutOptions();
            center.setChildOptions(childCenterOptions);
            // options for center-north pane
            LayoutOptions centerNorth = new LayoutOptions();
            centerNorth.addOption("resizable", false);
            centerNorth.addOption("size", pageWithLayoutPaneNorthSize);
            childCenterOptions.setNorthOptions(centerNorth);
            // options for center-center pane
            LayoutOptions centerCenter = new LayoutOptions();
            centerCenter.addOption("minHeight", pageWithLayoutPaneNorthSize);
            childCenterOptions.setCenterOptions(centerCenter);
            
            if (getOrdersController() != null &&
                getOrdersController().getShowBrowseEditOptions() &&
                pageNavigationController.isPageOrdersBrowse()) {
                
                // options for west pane
                LayoutOptions west = new LayoutOptions();
                west.addOption("closable", false);
                west.addOption("resizable", false);
                // if container has min-width/height, then enable scrollbar(s)
                west.addOption("minWidth", 60);
                west.addOption("minHeight", 200);
                layoutOptions.setWestOptions(west);
            }
        }
All layoutPanes are NOT resizable except for west pane.

Issue 308 in issue tracker.
Howard

PrimeFaces 6.0, Extensions 6.0.0, Push (Atmosphere 2.4.0)
TomEE+ 1.7.4 (Tomcat 7.0.68), MyFaces Core 2.2.9, JDK8
JUEL 2.2.7 | OmniFaces | EclipseLink-JPA/Derby | Chrome

Java EE 6 Tutorial|NetBeans|Google|Stackoverflow|PrimeFaces|Apache

User avatar
Oleg
Expert Member
Posts: 3805
Joined: 02 Oct 2009, 09:41
Location: Germany, Black Forest

06 Nov 2012, 10:28

I will check, ok. But I can not imagine that only "west" pane is resizable if you set"resizable="false". By the way, it doesn't make sense to set resizable="false" for "center" pane. AFAIK "resizable" is defined for all panes except "center". "center" gets resized automatically when other panes are resized too.
PrimeFaces Cookbook (2. edition): http://ova2.github.io/primefaces-cookbook/ Learning Angular UI Development with PrimeNG: https://github.com/ova2/angular-develop ... th-primeng Blog: https://medium.com/@OlegVaraksin

Post Reply

Return to “Extensions”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 8 guests