/*! * UI development toolkit for HTML5 (OpenUI5) * (c) Copyright 2009-2018 SAP SE or an SAP affiliate company. * Licensed under the Apache License, Version 2.0 - see LICENSE.txt. */ sap.ui.define(['jquery.sap.global'],function(q){"use strict";var A={};(function(){A.render=function(r,c){var a=r;c.doBeforeRendering();a.write("");var p=c.getPositions();if(p&&p.length>0){for(var i=0;i");a.renderControl(C);a.write("");}}}a.write("");};A.updateLayoutSize=function(l){q(l.getDomRef()).css("width",l.getWidth()).css("height",l.getHeight());};A.updateLayoutScolling=function(l){var L=q(l.getDomRef());for(var s in sap.ui.core.Scrolling){L.removeClass("sapUiLayoutAbsOvrflwY"+s).removeClass("sapUiLayoutAbsOvrflwX"+s);}L.addClass("sapUiLayoutAbsOvrflwY"+l.getVerticalScrolling()).addClass("sapUiLayoutAbsOvrflwX"+l.getHorizontalScrolling());};A.updatePositionStyles=function(p){q(p.getDomRef()).attr("style",g(p));};A.removePosition=function(p){q(p.getDomRef()).remove();};A.removeAllPositions=function(l){q(l.getDomRef()).html("");};A.updatePositionedControl=function(p){A.updatePositionStyles(p);var r=sap.ui.getCore().createRenderManager();r.renderControl(p.getControl());r.flush(p.getDomRef());r.destroy();};A.insertPosition=function(l,p){var i=l.indexOfPosition(p);var P=l.getPositions();var o=null;while(i>0){i--;if(P[i].getDomRef()){o=P[i];break;}}var h="
";if(!o){q(l.getDomRef()).prepend(h);}else{q(o.getDomRef()).after(h);}A.updatePositionedControl(p);};var g=function(p){var P=p.getComputedPosition();var a=function(p,b,s,v){if(v){b.push(s+":"+v+";");}};var b=[];a(p,b,"top",P.top);a(p,b,"bottom",P.bottom);a(p,b,"left",P.left);a(p,b,"right",P.right);a(p,b,"width",P.width);a(p,b,"height",P.height);return b.join("");};}());return A;},true);