     positionOptions.position = "absolute"
     @$().css positionOptions
 
-  getWidth:-> @$().outerWidth no
+  getWidth:-> @getDomElement().outerWidth no
 
   setWidth:(w, unit = "px")->
     @getElement().style.width = "#{w}#{unit}"

    @getElement().classList.contains cssClass

  getBounds: ->

    x : @getX()
    y : @getY()
    w : @getWidth()
    h : @getHeight()
    n : @constructor.name

  setRandomBG:->@getDomElement().css "background-color", KD.utils.getRandomRGB()


    for klass in "kdview #{cssClass}".split ' ' when klass.length
      el.classList.add klass

    @element = el
    @domElement = $ el

    if @lazy
