You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@weex.apache.org by ji...@apache.org on 2017/03/31 02:44:29 UTC

[13/50] [abbrv] incubator-weex git commit: * [html5] fix slide's sequence error.

* [html5] fix slide's sequence error.


Project: http://git-wip-us.apache.org/repos/asf/incubator-weex/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-weex/commit/30dda1a7
Tree: http://git-wip-us.apache.org/repos/asf/incubator-weex/tree/30dda1a7
Diff: http://git-wip-us.apache.org/repos/asf/incubator-weex/diff/30dda1a7

Branch: refs/heads/0.11-dev
Commit: 30dda1a731986b6bb43df27488e1f876ac2ab6d4
Parents: e1d333d
Author: MrRaindrop <te...@gmail.com>
Authored: Thu Mar 23 15:31:24 2017 +0800
Committer: MrRaindrop <te...@gmail.com>
Committed: Thu Mar 23 15:31:24 2017 +0800

----------------------------------------------------------------------
 html5/render/vue/components/slider/slideMixin.js | 3 +++
 1 file changed, 3 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/30dda1a7/html5/render/vue/components/slider/slideMixin.js
----------------------------------------------------------------------
diff --git a/html5/render/vue/components/slider/slideMixin.js b/html5/render/vue/components/slider/slideMixin.js
index db78dcc..7fefce7 100644
--- a/html5/render/vue/components/slider/slideMixin.js
+++ b/html5/render/vue/components/slider/slideMixin.js
@@ -67,6 +67,9 @@ export default {
         const nextElm = this._cells[nextIndex].elm
         const currentElm = this._cells[this.currentIndex].elm
 
+        // put current slide on the top.
+        currentElm.style.zIndex = 1
+
         // clone prevCell if there are only tow slides.
         if (this._cells.length === 2) {
           this._clonePrev && removeClone(this._clonePrev, lastPrev)