File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed
Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change 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" ,
Original file line number Diff line number Diff line change 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 } ) ;
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 ) {
You can’t perform that action at this time.
0 commit comments