Enhance maximize element action so that it fits/flexes appropriately.