Closed devmondo closed 9 years ago
I have to check ...
But I'm quite sure I'll find a solution for you ... maybe an optional override of the default behaviour.
@devmondo I modified a test file to enable fullscreen maximize on jsPanels appended to an element other than "body". It's done by an extra parameter in option.controls like:
$.jsPanel({
selector: 'your-container-element',
controls: {
maxtoScreen: true
}
});
This will maximize the panel to fullscreen even if option.selector is used with another value than "body". But since this panel is not appended to the body it will not maintain its position relative to the browser viewport on page scroll.
Download the testfile here
Sure needs some testing ...
@Flyer53
thank you very much it is working, regarding scrolling, we can disable it while the modal is on screen then enable it back using some jquery magic, so it is no issue :)
@devmondo Had to release a version 2.2.1 fixing two minor issues with the controls (affecting only childpanels) and jsPanel events.
Though not documented yet the parameter "maxtoScreen" for option.controls is included in this version.
@Flyer53 Awesome, thanks a lot
one of the coolest thing about JSPanel is you can attach it to element, this is great specially when using Angularjs, as i can inherit the controller properties because JSPanel is a child of it, but when i do so i cant Maximize the panel to full screen, is there a solution ?
thanks in advanced.