Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
check
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
abook_web
check
Commits
ce9b40c5
Commit
ce9b40c5
authored
Oct 04, 2019
by
Ha Jonguk
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
IE対応+小文字のみの場合の対応追加
parent
535bcf2d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
abvw/common/js/common.js
+4
-4
No files found.
abvw/common/js/common.js
View file @
ce9b40c5
...
...
@@ -3314,8 +3314,8 @@ COMMON.isAuthoringPreview = function() {
COMMON
.
fixTitleToDottedLine
=
function
(
titleEle
,
fontSize
,
height
)
{
// 表示用タイトルのスタイル設定
titleEle
.
css
({
"white-space"
:
"
unset
"
,
"text-overflow"
:
"
unset
"
,
"white-space"
:
"
normal
"
,
"text-overflow"
:
"
initial
"
,
"overflow"
:
"hidden"
,
"word-break"
:
"break-all"
,
"height"
:
height
+
"px"
,
...
...
@@ -3339,12 +3339,12 @@ COMMON.fixTitleToDottedLine = function(titleEle, fontSize, height) {
// 指定した高さになるまで、1文字ずつ消去していく
while
((
html
.
length
>
0
)
&&
(
cloneEle
.
height
()
>
titleEle
.
height
()))
{
html
=
html
.
substr
(
0
,
html
.
length
-
1
);
cloneEle
.
html
(
html
+
'...
...
'
);
cloneEle
.
html
(
html
+
'...
AA
'
);
fixed
=
true
;
}
// 小文字のみの場合、3点リーダーが表示みえない場合があるため対応
if
(
fixed
)
{
cloneEle
.
html
(
cloneEle
.
html
().
slice
(
0
,
-
3
));
cloneEle
.
html
(
cloneEle
.
html
().
slice
(
0
,
-
2
));
}
// 文章を入れ替えて、複製した要素を削除する
...
...
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