Auto scale width

Used Boolean variable getter/setter to auto scale width of document.