You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In setHeight(), when used for a WINDOW
setHeight: function (height) {
var me = this;
me.$el.css('height', me._calculateHeight(height))
.find('.lobibox-body')
.css('height', me._calculateBodyHeight(me.$el.innerHeight()));
return me;
},
When using a specific 'height', The call to me.calculatBodyHeight occurs before the change to $el.height just above has taken effect resulting in an incorrect value for $el.innerHeight(). You need to allow the element to render it seems before you can read the $el.innerHeight correctly.
As a simply work around I've only managed to use window.setTimeout. Its not pretty. Perhaps you could work out a better way....
maybe... just set the height to '100%'. I just tried it and it works. Its an inner height after all
The text was updated successfully, but these errors were encountered:
In setHeight(), when used for a WINDOW
setHeight: function (height) {
var me = this;
me.$el.css('height', me._calculateHeight(height))
.find('.lobibox-body')
.css('height', me._calculateBodyHeight(me.$el.innerHeight()));
return me;
},
When using a specific 'height', The call to me.calculatBodyHeight occurs before the change to $el.height just above has taken effect resulting in an incorrect value for $el.innerHeight(). You need to allow the element to render it seems before you can read the $el.innerHeight correctly.
As a simply work around I've only managed to use window.setTimeout. Its not pretty. Perhaps you could work out a better way....
maybe... just set the height to '100%'. I just tried it and it works. Its an inner height after all
The text was updated successfully, but these errors were encountered: