jQuery UI Widgets Forums Layouts Splitter Disabled splitter still reacts on mouse

This topic contains 3 replies, has 2 voices, and was last updated by  Dimitar 11 years, 6 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author

  • stephan
    Participant

    Hi,

    I’d like to be able to fully disable a splitter, meaning that it should also not change the mouse cursor when disabled. Changing the mosue cursor is a visual indication to the user that something will happen when clicking. Yet a disabled splitter changes the mosue cursor but nothing happens when clicking.

    This fiddle demonstrates my problems:
    http://jsfiddle.net/ZUNvp/4/

    Hovering over the spliter or the splitter button will show normal mouse cursor reaction, even though the splitter is disabled.

    Sidenote: yes I also looked at ‘showSplitBar’, but this removes the entire splitter element, so that there is no longer a separator between the panels. I just want to lock the pane sizes and not have the splitter change the mouse, which will mislead the user into thinking that something should happen.

    Regards,
    Stephan


    Dimitar
    Participant

    Hello Stephan,

    Thank you for your feedback. There seems to be an issue with the disabled property. However, you may use the disable method to achieve what you require, i.e.:

    $("#split1").jqxSplitter({
    orientation: 'horizontal',
    width: "100%",
    height: "100%",
    panels: [{
    size: '50%'
    }]
    });
    $("#split1").jqxSplitter('disable');

    Best Regards,
    Dimitar

    jQWidgets team
    http://www.jqwidgets.com/


    stephan
    Participant

    Hi Dimitar,

    Thanks for your advice. I now understand how “disabled” is supposed to work”. Regrattably this is not what I wanted to achieve. The “disabled” functionality actually disables both panels as well as the splitter bar. I only want to disabled just the splitter bar, not the two panels. Meaning: in “Splitter Active” mode you can drag/click it and in “Splitter Inactive” mode it does not react to drag/click/hover, thus locking the size of the two panels connected to the splitter.

    I guess my requirement falls outside of the feature scope of jqxSplitter, but maybe you could consider adding this (nice and useful) extra feature to a future version of jqxSplitter ?

    Regards,
    Stephan


    Dimitar
    Participant

    Hi Stephan,

    You can actually achieve your requirement by setting the resizable property to false and each panel’s collapsible property to false.

    Best Regards,
    Dimitar

    jQWidgets team
    http://www.jqwidgets.com/

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.