aralejs / position Goto Github PK
View Code? Open in Web Editor NEWPosition Utility
Position Utility
页面重新生成了,相对位置有问题,最好加个 container @afc163
定位元素有 margin 时,定位有误差。
目前影响不大,但是个问题。
这个是对的,不应该在display为none时对元素定位。
因为我们这里是一升全升的,没有版本号控制
0.8.5 的 Calendar,代码如下,日历不能正常显示(定位错误)
this.calendar = new Calendar({
trigger: this.element,
align: {
baseXY: ['100%+2', 0]
},
// 这里-1是新老日历组件的算法问题
// 上限一年
range: [now + (expireTimeSpan - 1) * 24 * 3600 * 1000, now + 364 * 24 * 3600 * 1000]
}).render();
1.1.0 的 Popup,代码如下,也是不能正确定位
this.popup = new Popup({
trigger: element,
triggerType: 'focus',
alignType: 'line',
width: 240,
content: content
}).after('render', function(){
// 对齐的位置不同
var align = this.get('align');
align.baseElement = element.next();
this.set('align', align);
});
最好的方式是不是如果,x或y有一个没填,默认值为本身css决定的位置?因为有的场景只是需要基于x或y轴一个定位的?比如说悬停的侧边栏,只是需要和中间区域保持间距,而高度变化是动态的,你觉得呢?
来自 @蔡伦 的问题。
移出 table 可修复。
第12行 判断ie6的写法在非ie浏览器下报错
line12: $.browser.msie 此行报错,自己改成特性检测了
问题来源于 aralejs/autocomplete#71
body 如下设置,append 到 body 的目标元素定位有问题
body {
position: relative;
top: 40px;
}
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.