Skip to content

Commit b26dfa0

Browse files
committed
修改align="right"时计算right
1 parent af26327 commit b26dfa0

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

bower.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "angular-wtpbox",
3-
"version": "0.0.19",
3+
"version": "0.0.20",
44
"main": "src/pbox.js",
55
"dependencies": {
66
"angular": "~1.2.25",

src/pbox.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@
3232
right = docClientWidth - elementLeft - elementOuterWidth;
3333
left = undefined;
3434
if (right + boxWidth > docClientWidth) {
35-
right = options.offset;
35+
// right = options.offset;
36+
right = docClientWidth - boxWidth - options.offset;
3637
}
3738
}
3839
else {

0 commit comments

Comments
 (0)