Skip to content

Commit

Permalink
Attempt fix for iOS 8 textarea scrolling bug.
Browse files Browse the repository at this point in the history
  • Loading branch information
tobyzerner committed Sep 20, 2014
1 parent 0315d08 commit 6ab40b2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions addons/skins/Default/views/mobile.master.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
// Turn off JS effects and fixed positions, and disable tooltips.
jQuery.fx.off = true;
ET.disableFixedPositions = true;
ET.mobile = true;
$.fn.tooltip = function() { return this; };
// Make the user menu into a popup, and take notifications out of the user menu.
$(function() {
Expand Down
4 changes: 2 additions & 2 deletions core/js/conversation.js
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ initReply: function() {
ETConversation.editingReply = false;

// Auto resize our reply textareas
textarea.TextAreaExpander(200, 700);
if (!ET.mobile) textarea.TextAreaExpander(200, 700);

// Disable the "post reply" button if there's not a draft. Disable the save draft button regardless.
if (!textarea.val()) $("#reply .postReply").disable();
Expand Down Expand Up @@ -700,7 +700,7 @@ updateEditPost: function(postId, html) {

// Set up the text area.
var len = textarea.val().length;
textarea.TextAreaExpander(200, 700).focus().selectRange(len, len);
if (!ET.mobile) textarea.TextAreaExpander(200, 700).focus().selectRange(len, len);
new ETAutoCompletePopup(textarea, "@");

// Add click handlers to the cancel/submit buttons.
Expand Down

0 comments on commit 6ab40b2

Please sign in to comment.