/*! * 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. */ // A renderer for the ScrollBar control sap.ui.define(['sap/ui/Device', "sap/ui/dom/getScrollbarSize"], function(Device, getScrollbarSize) { "use strict"; /** * ScrollBar renderer. * @namespace * @alias sap.m.ScrollBarRenderer */ var ScrollBarRenderer = {}; /** * Renders the HTML for the given control, using the provided {@link sap.ui.core.RenderManager}. * * @param {sap.ui.core.RenderManager} oRm The RenderManager that can be used for writing to the Render-Output-Buffer * @param {sap.ui.core.Control} oControl Object representation of the control that should be rendered */ ScrollBarRenderer.render = function(oRm, oControl){ var bRTL = sap.ui.getCore().getConfiguration().getRTL(), sScrollBarTouchClass = "sapMScrollBarTouch", sContentSize = oControl.getContentSize(), sControlId = oControl.getId(), bDeviceSupportsTouch = Device.support.touch, oBSS = getScrollbarSize(bDeviceSupportsTouch ? sScrollBarTouchClass : undefined), // Fix for Fiori Client and Edge in Mobile Mode on Win8 and Win10 iWidth = (Device.browser.edge && !oBSS.width) ? 15 : oBSS.width; // First div oRm.write("