/*! * 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. */ // Provides default renderer for control sap.ui.commons.Dialog sap.ui.define(['jquery.sap.global'], function(jQuery) { "use strict"; /** * sap.ui.commons.DialogRenderer * @namespace */ var DialogRenderer = {}; /** * Renders the HTML for the Dialog, using the provided {@link sap.ui.core.RenderManager}. * * @param {sap.ui.core.RenderManager} rm The RenderManager that can be used for writing to the render output buffer. * @param {sap.ui.core.Control} oControl An object representation of the control that should be rendered. */ DialogRenderer.render = function(rm, oControl) { var heightSet = oControl._isSizeSet(oControl.getHeight()); var widthSet = oControl._isSizeSet(oControl.getWidth()); var rb = sap.ui.getCore().getLibraryResourceBundle("sap.ui.commons"); oControl.getScrollTop(); // Update the scroll position properties oControl.getScrollLeft(); var aButtons = oControl.getButtons(); var iButtonCount = aButtons.length; // Root element and classes/styles rm.write("