示例#1
0
 public BodyBasedPropagatesToAppBatTitleFormCanvasStrategy(IHtmlFormCanvas createFor)
 {
     _for = createFor;
     _el  = new HTMLDivElement();
     _el.SetAttribute(Magics.AttrDataFormId, createFor.FormId);
     _el.SetValuelessAttribute(Magics.AttrDataFormTitle);
 }
示例#2
0
        public RegularDomElementTitleFormCanvasStrategy(IHtmlFormCanvas createFor)
        {
            //title needs to be in container as we need margin in styling.
            //Margins are not reflected in neither ClientHeight nor OffsetHeight and one needs to use slow/unreliable
            //http://stackoverflow.com/questions/10787782/full-height-of-a-html-element-div-including-border-padding-and-margin

            _for = createFor;
            _el  = new HTMLDivElement();
            _el.SetAttribute(Magics.AttrDataFormId, createFor.FormId);
            _el.SetValuelessAttribute(Magics.AttrDataFormTitle);
        }