thecodeholic / lobipanel

jQuery plugin for bootstrap panels. It extends panels with several common and useful functions.
MIT License
168 stars 75 forks source link

Unpinned lobipanel gives wrong height after resizing #37

Open Elzenga opened 7 years ago

Elzenga commented 7 years ago

I'm using it with the fullcalendar plugin in the panel. That works fine, but one of the problems the height setting of the calendar when the unpinned lobipanel is resized. For the full screen option and the pinned smallsize it works fine when I implement the following events: $('.panel').on('onFullScreen.lobiPanel onSmallSize.lobiPanel resizeStop.lobiPanel', function (ev, lobiPanel) { var $body = lobiPanel.$el.find('.fc-left'); if ($body.html() != null) { $('#calendar').fullCalendar('option', 'height', parent); };

When the panel is unpinned and the user resizes it, the event resizeStop is fired, but than probably there is something wrong with the setting of the internal panel height. The calendar height is not adjusted. A check learns that the getHeight function always returns the same size (691,2 in the windows console), whatever size the panel really has.....