Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
kus-admin
Project
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Иван Кубота
kus-admin
Commits
3f45df66
Commit
3f45df66
authored
Feb 03, 2020
by
Иван Кубота
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
6f7ddfa6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
CardSlider.jsx
src/view/cmp/cardSlider/CardSlider.jsx
+7
-1
No files found.
src/view/cmp/cardSlider/CardSlider.jsx
View file @
3f45df66
...
...
@@ -110,7 +110,7 @@ const CardSlider = (function(){
this
.
leftButtonDisabled
.
set
(
firstItem
===
0
);
this
.
rightButtonDisabled
.
set
(
firstItem
+
this
.
world
.
fullCardsCount
>=
this
.
items
.
length
);
if
(
this
.
cfg
.
setOuterHeight
){
this
.
scroller
.
style
.
height
=
(
this
.
hash
[
firstItem
].
dom
.
clientHeight
+
4
0
)
+
'px'
;
this
.
scroller
.
style
.
height
=
(
this
.
hash
[
firstItem
].
dom
.
clientHeight
+
6
0
)
+
'px'
;
}
//console.log(this.leftButtonDisabled.get(), this.rightButtonDisabled.get())
...
...
@@ -190,8 +190,14 @@ const CardSlider = (function(){
},
setItems
:
function
(
items
)
{
this
.
items
=
items
;
var
hash
=
this
.
hash
;
for
(
var
i
in
hash
){
if
(
hash
[
i
].
inDOM
)
hash
[
i
].
dom
.
parentNode
.
removeChild
(
hash
[
i
].
dom
);
}
this
.
hash
=
{};
this
.
last
=
false
;
this
.
update
();
},
save
:
function
()
{
...
...
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