Skip to content
This repository has been archived by the owner on Nov 3, 2021. It is now read-only.

Commit

Permalink
Bug 870628 - [MMS] Text in input box can overflow below the interface…
Browse files Browse the repository at this point in the history
…. - r=gnarf37
  • Loading branch information
steveck-chung authored and gnarf committed May 13, 2013
1 parent 0430f74 commit c070f16
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions apps/sms/js/thread_ui.js
Original file line number Diff line number Diff line change
Expand Up @@ -438,11 +438,10 @@ var ThreadUI = global.ThreadUI = {
(parseInt(inputCss.getPropertyValue('padding-top'), 10) +
parseInt(inputCss.getPropertyValue('padding-bottom'), 10)) /
fontSize;
var buttonHeight = 30;
var buttonHeight = this.sendButton.offsetHeight;

// Retrieve elements useful in growing method
var bottomBar = this.composeForm;
var bottomBarMaxHeight = parseInt(bottomBar.style.maxHeight, 10);

// We need to grow the input step by step
this.input.style.height = null;
Expand All @@ -454,7 +453,7 @@ var ThreadUI = global.ThreadUI = {
this.input.style.height = inputMaxHeight / fontSize + 'rem';
// Update the bottom bar height taking into account the padding
bottomBar.style.height =
bottomBarMaxHeight / fontSize + verticalPadding + 'rem';
inputMaxHeight / fontSize + verticalPadding + 'rem';
// We update the position of the button taking into account the
// new height
this.sendButton.style.marginTop =
Expand Down

0 comments on commit c070f16

Please sign in to comment.