Path: blob/master/webroot/rsrc/js/phuix/PHUIXFormationFlankView.js
12241 views
/**1* @provides phuix-formation-flank-view2* @requires javelin-install3* javelin-dom4*/56JX.install('PHUIXFormationFlankView', {78construct: function(node, head, body, tail) {9this._node = node;1011this._headNode = head;12this._bodyNode = body;13this._tailNode = tail;14},1516properties: {17isFixed: false,18bannerHeight: null,19width: null20},2122members: {23_node: null,24_headNode: null,25_bodyNode: null,26_tailNode: null,2728getBodyNode: function() {29return this._bodyNode;30},3132getTailNode: function() {33return this._tailNode;34},3536repaint: function() {37if (!this.getIsFixed()) {38return;39}4041this._node.style.top = this.getBannerHeight() + 'px';42this._node.style.width = this.getWidth() + 'px';4344var body = this.getBodyNode();45var body_pos = JX.$V(body);4647var tail = this.getTailNode();48var tail_pos = JX.$V(tail);4950var max_height = (tail_pos.y - body_pos.y);5152body.style.maxHeight = max_height + 'px';53}54}5556});575859