I have problem that when I reopen loader its not appearing at its original position and appear off center.
Also Is there a way to know if currently loader is opened or closed state?
I tested this example and it seems to work fine.
Unfortunately, there is no such event, but when autoOpen is true you could use a create event.
Otherwise when you use .open() and .close() methods you will know the exact moment.