Resetting HTML Dialog Window Location

ObjectSpace.each_object(UI::HtmlDialog).map(&:itself).each do |dialog|
  if dialog.visible?
    dialog.bring_to_front
    dialog.center
  end
end
5 Likes