From 7ae01062b1cc88dbbdecfc6ce0f3a1f2bd8a9f68 Mon Sep 17 00:00:00 2001 From: Bohung Date: Sat, 10 Apr 2021 17:34:17 +0800 Subject: [PATCH] Fix bug. --- app/assets/javascripts/bulletin/wpex.min.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/app/assets/javascripts/bulletin/wpex.min.js b/app/assets/javascripts/bulletin/wpex.min.js index bbe274e..a40ae2b 100644 --- a/app/assets/javascripts/bulletin/wpex.min.js +++ b/app/assets/javascripts/bulletin/wpex.min.js @@ -258,8 +258,12 @@ } utils.extend(Item.prototype, EventEmitter.prototype); Item.prototype._create = function () { - this._transn = { ingProperties: {}, clean: {}, onEnd: {} }; - this.css({ position: 'absolute' }) + this._transn = { ingProperties: {}, clean: {}, onEnd: {} }; + var el = $(this.element); + if(el.hasClass("row")){ + el.css("width","100%"); + } + this.css({ position: 'absolute' }) }; Item.prototype.handleEvent = function (event) { var method = 'on' + event.type;