0

I have a jQuery layout and I want to trigger the mousemove and drag event of the resizer bar programmatically. There is some custom code that uses the event data of resize event resizing is done through the resizer bar.

I have tried jQuery trigger method to trigger the events and also tried changing the position of the resizer bar but resizing is not fired.

How can I trigger it?

Suhail Akhtar
  • 1,718
  • 15
  • 29
  • Can you share the relevant source code with your attempt(s) please? Maybe making a minimal demo of what you are dealing with would be a good idea. – NewToJS May 10 '19 at 05:09
  • Here is some similar code: http://jsfiddle.net/sambhal/f986ckwb/6/ – Suhail Akhtar May 10 '19 at 05:30
  • Your **JsFiddle** appears to be a good working demo but what changes are you trying to make? *" I want to trigger the mousemove and drag event of the resizer bar programmatically"* When are you wanting to trigger the mousemove/drag? Please explain in detail what you expect the client to do and your expected output. Thank you. – NewToJS May 10 '19 at 05:49
  • There is a scroll bar which when dragged resizes the panes, I want to trigger that resizing event without manually dragging the resizer. – Suhail Akhtar May 10 '19 at 05:51
  • 1
    Maybe this [**Stackoverflow Question**](https://stackoverflow.com/questions/31688175/jquery-ui-layout-how-change-a-panes-options-and-dynamically-apply-them-withou) might be of some help? – NewToJS May 10 '19 at 06:06
  • Thanks, I'll check the solution. – Suhail Akhtar May 10 '19 at 06:12
  • @NewToJS: It is not triggering the resize event. – Suhail Akhtar May 10 '19 at 06:17

0 Answers0