Skip to content

Commit 2d4c44a

Browse files
committed
0.0.19
1 parent 5d4a67f commit 2d4c44a

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-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.18",
3+
"version": "0.0.19",
44
"main": "src/pbox.js",
55
"dependencies": {
66
"angular": "~1.2.25",

src/pbox.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,10 @@
281281
}
282282
_self.close();
283283
});
284-
284+
_self._windowResize = (function () {
285+
$wtPosition.calculatePos(this._options, $target, this._pboxElement);
286+
}).bind(_self);
287+
$(window).resize(_self._windowResize);
285288
_self._pboxElement.bind("keydown.pbox", function (e) {
286289
e.stopPropagation();
287290
});
@@ -325,6 +328,7 @@
325328
this._scope = null;
326329
$document.unbind("mousedown.pbox" + this._id);
327330
$document.unbind("keydown.pbox" + this._id);
331+
$(window).off(this._windowResize);
328332
};
329333

330334
BoxModal.prototype.close = function (result) {

0 commit comments

Comments
 (0)