@openui5/sap.ui.core
Version:
OpenUI5 Core Library sap.ui.core
29 lines (22 loc) • 604 B
JavaScript
/*!
* OpenUI5
* (c) Copyright 2009-2021 SAP SE or an SAP affiliate company.
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
*/
// Provides default renderer for View
sap.ui.define(function() {
"use strict";
/**
* View renderer.
* @namespace
* @alias sap.ui.core.mvc.ViewRenderer
*/
var ViewRenderer = {
};
ViewRenderer.addDisplayClass = function(rm, oControl) {
if (oControl.getDisplayBlock() || (oControl.getWidth() === "100%" && oControl.getHeight() === "100%")) {
rm.class("sapUiViewDisplayBlock");
}
};
return ViewRenderer;
}, /* bExport= */ true);