API Reference 0.7.1rikulo_view_implDialogInfo

DialogInfo class

The dialog information.

class DialogInfo {
 /** The cave node that contains the mask node and the view's node.
  */
 final Element cave;
 /** The mask node. */
 final Element mask;
 DialogInfo(this.cave, this.mask);

 void updateSize() {
   final p = cave.parent;
   final size = p == document.body || p == null ?
     DomUtil.windowSize: DomUtil.clientSize(p);
   mask.style
     ..width = CssUtil.px(size.width)
     ..height = CssUtil.px(size.height);
 }

}

Constructors

new DialogInfo(Element cave, Element mask) #

Creates a new Object instance.

Object instances have no meaningful state, and are only useful through their identity. An Object instance is equal to itself only.

docs inherited from Object
DialogInfo(this.cave, this.mask);

Properties

final Element cave #

The cave node that contains the mask node and the view's node.

final Element cave

final Element mask #

The mask node.

final Element mask

Methods

void updateSize() #

void updateSize() {
 final p = cave.parent;
 final size = p == document.body || p == null ?
   DomUtil.windowSize: DomUtil.clientSize(p);
 mask.style
   ..width = CssUtil.px(size.width)
   ..height = CssUtil.px(size.height);
}