Loading ...
Sorry, an error occurred while loading the content.
 

Problem with Overlay.center() function (and fix)

Expand Messages
  • Chris Thatcher
    When calling the center function on a Dialog it is possible for the y value to be set to a negative number if the height of the dialog being centered is larger
    Message 1 of 1 , Oct 28, 2006
      When calling the center function on a Dialog it is possible for the y value to be set to a negative number if the height of the dialog being centered is larger than the viewport.  I would suggest that the following 2 lines of code be added to the center() function:

      if (y < 0)
         y = 0;

      ~Chris
    Your message has been successfully submitted and would be delivered to recipients shortly.