Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
converse.js
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
converse.js
Commits
79990f7e
Commit
79990f7e
authored
Jan 11, 2019
by
JC Brand
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Don't unnecessarily set height on textarea
parent
12700ef4
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
4 deletions
+12
-4
CHANGES.md
CHANGES.md
+1
-0
dist/converse.js
dist/converse.js
+6
-2
src/converse-chatview.js
src/converse-chatview.js
+5
-2
No files found.
CHANGES.md
View file @
79990f7e
...
...
@@ -5,6 +5,7 @@
-
Bugfix: MUC commands were being ignored
-
Bugfix: Multiple rooms shown active in the rooms list
-
Bugfix: Don't open chats when receiving messages without a
`body`
-
Bugfix: Typing in the textarea can become very slow in large MUCs
-
UI: Always show the OMEMO lock icon (grayed out if not available).
-
Use
`publish-options`
with
`pubsub#access_model`
set to
`open`
when publishing OMEMO public keys and devices
-
Add a new
`converse-pubsub`
plugin, for generic PubSub operations
...
...
dist/converse.js
View file @
79990f7e
...
...
@@ -50420,9 +50420,13 @@ _converse_headless_converse_core__WEBPACK_IMPORTED_MODULE_5__["default"].plugins
},
inputChanged(ev) {
ev.target.style.height = 'auto'; // Fixes weirdness
const new_height = ev.target.scrollHeight + 'px';
ev.target.style.height = ev.target.scrollHeight + 'px';
if (ev.target.style.height !== new_height) {
ev.target.style.height = 'auto'; // Fixes weirdness
ev.target.style.height = new_height;
}
},
clearMessages(ev) {
src/converse-chatview.js
View file @
79990f7e
...
...
@@ -1008,8 +1008,11 @@ converse.plugins.add('converse-chatview', {
},
inputChanged
(
ev
)
{
ev
.
target
.
style
.
height
=
'
auto
'
;
// Fixes weirdness
ev
.
target
.
style
.
height
=
(
ev
.
target
.
scrollHeight
)
+
'
px
'
;
const
new_height
=
ev
.
target
.
scrollHeight
+
'
px
'
;
if
(
ev
.
target
.
style
.
height
!==
new_height
)
{
ev
.
target
.
style
.
height
=
'
auto
'
;
// Fixes weirdness
ev
.
target
.
style
.
height
=
new_height
;
}
},
clearMessages
(
ev
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment