JSFiddle - React, Tailwind, and code Playground
HTML
<link href="http://cdn.sencha.com/ext/gpl/4.2.0/resources/css/ext-all.css" rel="stylesheet" />
JavaScript
Ext.window.Window.override({
animateTarget: Ext.getDoc(),
maximize: function(){
this.callParent([true]);
},
restore:function(){
this.callParent([true]);
}
});
Ext.define('MyWindow', {
extend: 'Ext.window.Window',
height: 250,
width: 400,
title: 'My Window',
maximizable: true
});
Ext.onReady(function(){
var w = new MyWindow();
w.show();
});