Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Dialog: Only focus the dialog if mousedown is not in the titlebar close button #828
I suppose you can delegate the mousedown, and cancel the event when it bubbles to .ui-dialog-titlebar-close, otherwise allow focus to happen. Would that be a better alternative? Again, I'm just getting up to speed here, so if my suggestion makes no sense... ignore it. :-)
Following @jzaefferer's recommendation, this new commit repositions after resize. It appears to fix the issue in a much simpler way. Only problem is I can't seem to replicate the issue as a unit test. Simulating mousedown on the close button doesn't cause it to reposition like it does with actual mouse interactions.