Calculate the absolute width and height based on the flags, and the profided width and height.
See Implementation
Calculate the absolute width and height based on the flags, and the profided width and height.