Flyer53 / jsPanel

A jQuery Plugin to create highly configurable floating panels, modals, tooltips and hints/notifiers for use in a backend solution and other web applications.
http://v2.jspanel.de/
Other
163 stars 56 forks source link

any way to resize in minimized/smalified state #29

Closed alisabri closed 9 years ago

alisabri commented 9 years ago

Hi Stefan, Is there any way to resize a panel (which is already appended dom) as if it is created new ? For the moment I save panel object as data(to dom) and then later trying to use object methods but no success so far. Appreciate any advice.

Regards

alisabri commented 9 years ago

Hi again, I managed to make it work by totally closing current panel and creating new one with same id and new content. If there is way to make it without closing could you please comment on that direction ?

Regards

Flyer53 commented 9 years ago

As of version 2.4.0 there is a method resize( width, height ) available. Please refer to the API documentation for details: http://jspanel.de/api/method/resize

resize( width, height ) can be called on jsPanels not minimized. For minimized panels it doesn't really make sense. If you want to "normalize" a minimized panel programatically you could do this like ...

var panel = $.jsPanel();

jsPanel.normalize(panel);
alisabri commented 9 years ago

Thanks Stefan

Flyer53 commented 9 years ago

Forget something: To "normalize" programatically you can of course use also

var panel = $.jsPanel();

panel.normalize();