"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var tslib_1 = require("tslib");
var React = require("react");
var Utilities_1 = require("office-ui-fabric-react/lib/Utilities");
var Button_1 = require("office-ui-fabric-react/lib/Button");
var Tooltip_1 = require("office-ui-fabric-react/lib/Tooltip");
var TooltipNoScrollExample = /** @class */ (function (_super) {
    tslib_1.__extends(TooltipNoScrollExample, _super);
    function TooltipNoScrollExample() {
        var _this = _super !== null && _super.apply(this, arguments) || this;
        _this.tooltipId = Utilities_1.getId('text-tooltip');
        return _this;
    }
    TooltipNoScrollExample.prototype.render = function () {
        return (React.createElement(Tooltip_1.TooltipHost, { content: "This is the tooltip", id: this.tooltipId, tooltipProps: { style: { overflowY: 'auto' } }, styles: { root: { display: 'inline-block' } } },
            React.createElement(Button_1.DefaultButton, { "aria-describedby": this.tooltipId }, "Tooltip without scroll")));
    };
    return TooltipNoScrollExample;
}(Utilities_1.BaseComponent));
exports.TooltipNoScrollExample = TooltipNoScrollExample;
//# sourceMappingURL=Tooltip.NoScroll.Example.js.map