Skip to content

Commit

Permalink
- Fixes issue with widget not correctly rendering when widget is comi…
Browse files Browse the repository at this point in the history
…ng from conditionally invisible to conditionally visible.
  • Loading branch information
RoelandSalij committed Jun 16, 2015
1 parent be99149 commit 520ba8d
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
8 changes: 5 additions & 3 deletions src/calendar/widget/calendar.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ require({
_shouldDestroyOnUpdate: false,

postCreate: function () {
console.debug('Calendar - startup');
console.debug('Calendar - postCreate');

this._colors = this.notused; //workaround for legacy users
this._availableViews = this.notused1; //workaround for legacy users
Expand All @@ -77,7 +77,10 @@ require({
this._eventSource = [];
this._allowCreate = this.editable || (this.neweventmf !== null && this.neweventmf !== '');
this._shouldDestroyOnUpdate = this._hasDynamicCalendarPropertiesConfigured();

},

startup: function () {
console.debug('Calendar - startup');
//make a calendarbox
this._calendarBox = dom.create('div', {
'id': 'calendar_' + this.id
Expand All @@ -87,7 +90,6 @@ require({
this._fcNode = $('#calendar_' + this.id);

this._renderCalendar(null);

},

update: function (obj, callback) {
Expand Down
2 changes: 1 addition & 1 deletion src/package.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8" ?>
<package xmlns="http://www.mendix.com/package/1.0/">
<clientModule name="Calendar" version="4.2.2.1" xmlns="http://www.mendix.com/clientModule/1.0/">
<clientModule name="Calendar" version="4.2.3" xmlns="http://www.mendix.com/clientModule/1.0/">
<widgetFiles>
<widgetFile path="calendar/calendar.xml"/>
</widgetFiles>
Expand Down
Binary file modified test/Widgets/Calendar.mpk
Binary file not shown.
Binary file modified test/[Test] Calendar Widget.mpr
Binary file not shown.

0 comments on commit 520ba8d

Please sign in to comment.