Are there any javascript events is triggered whenever a module-settings panel is opened?
I’m trying to add some custom classes to the fl-lightbox and tabs to provide some extra width when using a custom module. It works when adding the class manually but would be nice to just add them when the form is triggered.
In my add_width.js I check for creation of .fl-lightbox-header element which basically means a new settings window is created. After that I add the class to a few elements and reset position of the fl-lightbox element to the center of the screen.
I can now have a settings-window that accommodates a larger wysiwyg-editor.
Please let me know if I could have done this differently, but it seemed worth the trouble to get this working this way.
I’m glad to hear you got it working. There’s no good way built-in to hook into a settings lightbox open event, but we can add one if needed. All of our events are delegates, so we’ve never needed that, but let me know if you do.