projects
/
roojs1
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
d26fe5d
)
Roo/bootstrap/TabGroup.js
author
Alan Knowles
<alan@roojs.com>
Tue, 4 Dec 2018 09:06:31 +0000
(17:06 +0800)
committer
Alan Knowles
<alan@roojs.com>
Tue, 4 Dec 2018 09:06:31 +0000
(17:06 +0800)
Roo/bootstrap/TabGroup.js
patch
|
blob
|
history
diff --git
a/Roo/bootstrap/TabGroup.js
b/Roo/bootstrap/TabGroup.js
index
f00627d
..
83db668
100644
(file)
--- a/
Roo/bootstrap/TabGroup.js
+++ b/
Roo/bootstrap/TabGroup.js
@@
-235,13
+235,19
@@
Roo.extend(Roo.bootstrap.TabGroup, Roo.bootstrap.Column, {
if (this.carousel && typeof(Roo.get(document.body).dom.style.transition) != 'undefined') {
if (this.carousel && typeof(Roo.get(document.body).dom.style.transition) != 'undefined') {
+ //class="carousel-item carousel-item-next carousel-item-left"
+
this.transition = true;
var dir = this.indexOfPanel(pan) > this.indexOfPanel(cur) ? 'next' : 'prev';
var lr = dir == 'next' ? 'left' : 'right';
pan.el.addClass(dir); // or prev
this.transition = true;
var dir = this.indexOfPanel(pan) > this.indexOfPanel(cur) ? 'next' : 'prev';
var lr = dir == 'next' ? 'left' : 'right';
pan.el.addClass(dir); // or prev
+ pan.el.addClass('carousel-item-' + dir); // or prev
pan.el.dom.offsetWidth; // find the offset with - causing a reflow?
cur.el.addClass(lr); // or right
pan.el.addClass(lr);
pan.el.dom.offsetWidth; // find the offset with - causing a reflow?
cur.el.addClass(lr); // or right
pan.el.addClass(lr);
+ cur.el.addClass('carousel-item-' +lr); // or right
+ pan.el.addClass('carousel-item-' +lr);
+
var _this = this;
cur.el.on('transitionend', function() {
var _this = this;
cur.el.on('transitionend', function() {