Skip to content

Commit

Permalink
Correctly resize message area when adding addresses
Browse files Browse the repository at this point in the history
  • Loading branch information
slusarz committed Jan 30, 2014
1 parent 0064a57 commit de7e187
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions imp/js/compose-dimp.js
Expand Up @@ -1462,6 +1462,7 @@ document.observe('HordeCore:click', DimpCompose.clickHandler.bindAsEventListener
Event.observe(window, 'resize', DimpCompose.resizeMsgArea.bindAsEventListener(DimpCompose));

/* Other UI event handlers. */
document.observe('AutoComplete:resize', DimpCompose.resizeMsgArea.bind(DimpCompose));
document.observe('ImpContacts:update', DimpCompose.onContactsUpdate.bindAsEventListener(DimpCompose));

/* ContextSensitive functions. */
Expand Down
4 changes: 3 additions & 1 deletion imp/js/prettyautocomplete.js
Expand Up @@ -3,12 +3,13 @@
* (completed elements are stored in separate DIV elements).
*
* Events handled by this class:
* -----------------------------
* - AutoComplete:focus
* - AutoComplete:handlers
* - AutoComplete:reset
* - AutoComplete:update
*
* Events triggered by this class:
* - AutoComplete:resize
*
* Copyright 2008-2014 Horde LLC (http://www.horde.org/)
*
Expand Down Expand Up @@ -263,6 +264,7 @@ var IMP_PrettyAutocompleter = Class.create({
this.input.setStyle({
width: Math.max(80, $F(this.input).length * 9) + 'px'
});
this.input.fire('AutoComplete:resize');
},

toObject: function(elt)
Expand Down

0 comments on commit de7e187

Please sign in to comment.