electron/lib/browser/api/views/box-layout.js

16 lines
372 B
JavaScript
Raw Normal View History

2020-03-20 20:28:31 +00:00
'use strict';
2018-05-22 08:08:27 +00:00
2020-03-20 20:28:31 +00:00
const electron = require('electron');
2018-05-22 08:08:27 +00:00
2020-03-20 20:28:31 +00:00
const { LayoutManager } = electron;
const { BoxLayout } = process.electronBinding('box_layout');
2018-05-22 08:08:27 +00:00
2020-03-20 20:28:31 +00:00
Object.setPrototypeOf(BoxLayout.prototype, LayoutManager.prototype);
2018-05-22 08:08:27 +00:00
BoxLayout.prototype._init = function () {
// Call parent class's _init.
2020-03-20 20:28:31 +00:00
LayoutManager.prototype._init.call(this);
};
2018-05-22 08:08:27 +00:00
2020-03-20 20:28:31 +00:00
module.exports = BoxLayout;