Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
chat_webview
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
abookCommunication
chat_webview
Commits
5ab391a4
Commit
5ab391a4
authored
Jun 09, 2021
by
Takatoshi Miura
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'communication/#43070_scroll-keep' into 'develop'
#43070_scroll-keep_ios用スクロール位置調整 See merge request
!168
parents
7a2079d0
539ba022
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
11 deletions
+6
-11
public_new/js/chat-db.js
+0
-9
public_new/js/chat.js
+6
-2
No files found.
public_new/js/chat-db.js
View file @
5ab391a4
...
...
@@ -313,15 +313,6 @@ CHAT_DB.addFavoriteGroup = function(groupId) {
}
};
CHAT_DB
.
getContentList
=
function
()
{
if
(
CHAT_UTIL
.
isIOS
())
{
//TODO ローカルDBからダウンロード済のコンテンツを取得
}
else
if
(
CHAT_UTIL
.
isAndroid
())
{
return
JSON
.
parse
(
android
.
getContentList
());
}
};
CHAT_DB
.
getUserListByLoginId
=
function
(
loginIdList
)
{
console
.
log
(
loginIdList
);
if
(
CHAT_UTIL
.
isIOS
())
{
...
...
public_new/js/chat.js
View file @
5ab391a4
...
...
@@ -383,7 +383,9 @@ $(function() {
var
afterWidth
=
window
.
innerWidth
;
var
moreScroll
=
beforeHeight
-
afterHeight
;
if
(
beforeHeight
>
afterHeight
&&
(
beforeHeight
-
afterHeight
)
>
50
)
{
if
(
beforeWidth
==
afterWidth
)
{
if
(
CHAT_UTIL
.
isIOS
())
{
window
.
scrollTo
(
0
,
beforeScroll
+
moreScroll
);
}
else
if
(
beforeWidth
==
afterWidth
)
{
//キーボード表示時
$
(
'.room_container'
).
css
(
'margin-bottom'
,
0
);
window
.
scrollTo
(
0
,
beforeScroll
+
moreScroll
-
$
(
'.footer_content_b'
).
height
());
...
...
@@ -393,7 +395,9 @@ $(function() {
}
}
else
if
(
beforeHeight
<
afterHeight
)
{
$
(
'.room_container'
).
css
(
'margin-bottom'
,
footerHeight
);
if
(
beforeWidth
==
afterWidth
)
{
if
(
CHAT_UTIL
.
isIOS
())
{
window
.
scrollTo
(
0
,
beforeScroll
+
moreScroll
);
}
else
if
(
beforeWidth
==
afterWidth
)
{
//キーボード非表示
window
.
scrollTo
(
0
,
beforeScroll
+
moreScroll
+
$
(
'.footer_content_b'
).
height
());
}
else
{
...
...
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