Skip to content

Commit

Permalink
修复一个插入元素导致滚动条闪烁的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
afc163 committed Jul 16, 2013
1 parent e1f5a2d commit b12716b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "tip",
"version": "1.1.4",
"version": "1.1.5",
"family": "arale",
"keywords": [
"widget"
Expand Down
6 changes: 6 additions & 0 deletions src/atip.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,12 @@ define(function(require, exports, module) {

setup: function() {
this._originArrowPosition = this.get('arrowPosition');
// 设置位置,避免滚动条闪动
this.element.css({
position: "absolute",
top: 0,
left: 0
});
Atip.superclass.setup.call(this);
},

Expand Down

0 comments on commit b12716b

Please sign in to comment.