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
1d005a56
Commit
1d005a56
authored
Feb 14, 2016
by
rlanvin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Keep scroll position on minimize/maximize
parent
fae4f368
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
0 deletions
+4
-0
converse.js
converse.js
+3
-0
docs/CHANGES.md
docs/CHANGES.md
+1
-0
No files found.
converse.js
View file @
1d005a56
...
...
@@ -2037,6 +2037,7 @@
*/
chatboxviews
.
trimChats
(
this
);
converse
.
refreshWebkit
();
this
.
$content
.
scrollTop
(
this
.
model
.
get
(
'
scroll
'
));
this
.
setChatState
(
ACTIVE
).
focus
();
converse
.
emit
(
'
chatBoxMaximized
'
,
this
);
}.
bind
(
this
));
...
...
@@ -2044,6 +2045,8 @@
minimize
:
function
(
ev
)
{
if
(
ev
&&
ev
.
preventDefault
)
{
ev
.
preventDefault
();
}
// save the scroll position to restore it on maximize
this
.
model
.
save
({
'
scroll
'
:
this
.
$content
.
scrollTop
()});
// Minimizes a chat box
this
.
setChatState
(
INACTIVE
).
model
.
minimize
();
this
.
$el
.
hide
(
'
fast
'
,
converse
.
refreshwebkit
);
...
...
docs/CHANGES.md
View file @
1d005a56
...
...
@@ -4,6 +4,7 @@
-
#261 show_controlbox_by_default config not working [diditopher]
-
#573 xgettext build error:
`'javascript' unknown`
-
Save scroll position on minimize and restore it on maximize [rlanvin]
## 0.10.1 (2016-02-06)
...
...
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