I am assuming since the bed is higher than she is, when she jumps up, it puts pressure on the bladder. Then she has to go... Trying this medication will help. the other option is simply just shutting your door when you are gone.
Dashounds are notorious for housebreaking problems including spite. However- you stated she was always housebroken before, so I dont think this is the case..